idanto
02/08/2024, 4:52 AMidanto
02/08/2024, 5:02 AMrp_st
02/08/2024, 5:07 AMidanto
02/08/2024, 5:09 AMidanto
02/08/2024, 5:09 AMidanto
02/08/2024, 5:11 AMrp_st
02/08/2024, 5:12 AMrp_st
02/08/2024, 5:12 AMidanto
02/08/2024, 5:13 AMrp_st
02/08/2024, 5:15 AMrp_st
02/08/2024, 5:15 AMidanto
02/08/2024, 6:35 AMidanto
02/08/2024, 7:00 AMrp_st
02/08/2024, 7:18 AMrp_st
02/08/2024, 7:18 AMidanto
02/08/2024, 7:20 AMidanto
02/08/2024, 7:21 AMinput.tenantId = 'public';
return await originalImplementation.createCode(input)
and I get a in the email that includes the original tenant in the query params which I assume will cause the FE to add it to the path when it tries to verify which will lead to a failurerp_st
02/08/2024, 7:22 AMrp_st
02/08/2024, 7:22 AMrp_st
02/08/2024, 7:23 AMidanto
02/08/2024, 7:27 AMidanto
02/08/2024, 7:27 AMrp_st
02/08/2024, 7:30 AMrp_st
02/08/2024, 7:30 AMidanto
02/08/2024, 7:30 AMrp_st
02/08/2024, 7:30 AMrp_st
02/08/2024, 7:30 AMrp_st
02/08/2024, 7:30 AMidanto
02/08/2024, 7:30 AMrp_st
02/08/2024, 7:30 AMidanto
02/08/2024, 7:30 AMidanto
02/08/2024, 7:31 AMrp_st
02/08/2024, 7:32 AMidanto
02/08/2024, 7:33 AMidanto
02/08/2024, 7:37 AMrp_st
02/08/2024, 7:38 AMidanto
02/08/2024, 7:43 AMrp_st
02/08/2024, 7:44 AMidanto
02/08/2024, 7:45 AMrp_st
02/08/2024, 7:45 AMidanto
02/08/2024, 7:46 AMrp_st
02/08/2024, 7:48 AMrp_st
02/08/2024, 7:48 AMidanto
02/08/2024, 7:50 AMrp_st
02/08/2024, 7:50 AMrp_st
02/08/2024, 7:51 AMidanto
02/08/2024, 7:52 AMidanto
02/08/2024, 7:52 AMrp_st
02/08/2024, 7:52 AMidanto
02/08/2024, 7:53 AMrp_st
02/08/2024, 7:53 AMrp_st
02/08/2024, 7:53 AMrp_st
02/08/2024, 7:54 AMidanto
02/08/2024, 7:54 AMrp_st
02/08/2024, 7:56 AMrp_st
02/08/2024, 7:56 AMidanto
02/08/2024, 7:58 AMrp_st
02/08/2024, 7:58 AMidanto
02/08/2024, 8:00 AMrp_st
02/08/2024, 8:01 AMidanto
02/08/2024, 8:01 AMrp_st
02/08/2024, 8:01 AMrp_st
02/08/2024, 8:02 AMidanto
02/08/2024, 8:02 AMrp_st
02/08/2024, 8:02 AMrp_st
02/08/2024, 8:03 AMidanto
02/08/2024, 8:03 AMrp_st
02/08/2024, 8:03 AMidanto
02/11/2024, 5:44 PMRESTART_FLOW_ERROR
the logic replace the tenant in the createCodePOST
api override. I guess the failure is because the FE doesn't know about the change of the tenant and try to call consume with the old tenantidanto
02/11/2024, 5:44 PMrp_st
02/11/2024, 5:44 PMidanto
02/11/2024, 5:45 PMidanto
02/11/2024, 5:46 PMrp_st
02/11/2024, 5:47 PMrp_st
02/11/2024, 5:47 PMidanto
02/11/2024, 5:50 PMidanto
02/11/2024, 6:10 PMidanto
02/11/2024, 6:55 PMrp_st
02/11/2024, 7:11 PMidanto
02/11/2024, 7:15 PMidanto
02/11/2024, 7:15 PMrp_st
02/11/2024, 7:15 PMrp_st
02/11/2024, 7:16 PMrp_st
02/11/2024, 7:16 PMidanto
02/11/2024, 7:16 PMidanto
02/11/2024, 7:16 PMrp_st
02/11/2024, 7:17 PMrp_st
02/11/2024, 7:17 PMidanto
02/11/2024, 7:17 PMrp_st
02/11/2024, 7:18 PMidanto
02/11/2024, 7:19 PMrp_st
02/11/2024, 7:19 PMPasswordless.init({
contactMethod: "EMAIL",
async getRedirectionURL(context, userContext) {
return null;
},
postAPIHook: async (context) => {
if (context.action === "PASSWORDLESS_CREATE_CODE") {
let response = context.fetchResponse
// TODO..
}
}
}),
rp_st
02/11/2024, 7:20 PMrp_st
02/11/2024, 7:20 PMidanto
02/11/2024, 7:21 PMrp_st
02/11/2024, 7:21 PMidanto
02/11/2024, 7:22 PMidanto
02/12/2024, 5:30 AMgetTenantId
function after we initialize the login process.
so becausse i'm changing the tenant in the createCodePOST from the FE side the process already initiated. and even if I override the postAPIHook and set the new tenant to the localstore it won't go through the getTenantId function in the consume code.
I think we left only with the cookie part, unless there is something I can do in the preAPIHook, PASSWORDLESS_CONSUME_CODE
that will change the process in the middle or send this data in the requestrp_st
02/12/2024, 5:32 AM/auth/<tenantid>/code/consume
idanto
02/12/2024, 5:37 AMidanto
02/12/2024, 5:37 AM