romain9206
05/11/2022, 3:03 PMgetRedirectionURL: async (context) => {
if (context.action === "SUCCESS") {
if (context.redirectToPath !== undefined) {
// we are navigating back to where the user was before they authenticated
return context.redirectToPath;
}
return "/dashboard";
}
return undefined;
}
but I don't see how to pass the redirectToPath
to get it here
Thanks for your help 🙂rp_st
05/11/2022, 3:10 PMrp_st
05/11/2022, 3:11 PMromain9206
05/11/2022, 3:12 PMrp_st
05/11/2022, 3:18 PMgetRedirectionURL
function, if context.action === "SUCCESS"
, you can read that query param using window.location.search
and redirect the user to that page.romain9206
05/11/2022, 3:19 PMcontext.redirectToPath
is used for what ? And where is setted ?rp_st
05/11/2022, 3:23 PMromain9206
05/11/2022, 3:24 PMromain9206
05/11/2022, 3:24 PMromain9206
05/11/2022, 3:26 PMromain9206
05/11/2022, 3:26 PMrp_st
05/11/2022, 3:27 PMromain9206
05/11/2022, 3:27 PM/auth/signinup/code/consume 500
romain9206
05/11/2022, 3:27 PMromain9206
05/11/2022, 3:27 PMrp_st
05/11/2022, 3:27 PMrp_st
05/11/2022, 3:28 PMromain9206
05/11/2022, 3:28 PMSuperTokens core threw an error for a POST request to path: '/recipe/signinup/code/consume' with status code: 400 and message: Input encoding error in linkCode
romain9206
05/11/2022, 3:30 PM&redirectPath=/test
, I move it to the start of the URLromain9206
05/11/2022, 3:30 PMrp_st
05/11/2022, 3:31 PMromain9206
05/11/2022, 3:33 PMromain9206
05/11/2022, 3:34 PMPARAMS -> ?rid=passwordless&error=restart_link
on success is normalromain9206
05/11/2022, 3:34 PMrp_st
05/11/2022, 3:34 PMrp_st
05/11/2022, 3:34 PMerror=restart_link
should not be thereromain9206
05/11/2022, 3:35 PMromain9206
05/11/2022, 3:36 PMrp_st
05/11/2022, 3:37 PMromain9206
05/11/2022, 3:38 PMwindow.location.search
is have this errorrp_st
05/11/2022, 3:39 PMrp_st
05/11/2022, 3:39 PM&error=restart_link
?romain9206
05/11/2022, 3:41 PMromain9206
05/11/2022, 3:42 PMrp_st
05/11/2022, 3:42 PMrp_st
05/11/2022, 3:42 PMrp_st
05/11/2022, 3:42 PMromain9206
05/11/2022, 3:43 PMromain9206
05/11/2022, 3:44 PMrp_st
05/11/2022, 3:44 PMrp_st
05/11/2022, 3:44 PMromain9206
05/11/2022, 3:44 PMrp_st
05/11/2022, 3:44 PMrp_st
05/11/2022, 3:45 PMromain9206
05/11/2022, 3:46 PMromain9206
05/11/2022, 3:46 PMrp_st
05/11/2022, 3:48 PMromain9206
05/11/2022, 3:52 PM