Romain
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
05/11/2022, 3:10 PMRomain
05/11/2022, 3:12 PMrp
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.Romain
05/11/2022, 3:19 PMcontext.redirectToPath
is used for what ? And where is setted ?rp
05/11/2022, 3:23 PMRomain
05/11/2022, 3:24 PMrp
05/11/2022, 3:27 PMRomain
05/11/2022, 3:27 PM/auth/signinup/code/consume 500
rp
05/11/2022, 3:27 PMRomain
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
&redirectPath=/test
, I move it to the start of the URLrp
05/11/2022, 3:31 PMRomain
05/11/2022, 3:33 PMPARAMS -> ?rid=passwordless&error=restart_link
on success is normalrp
05/11/2022, 3:34 PMerror=restart_link
should not be thereRomain
05/11/2022, 3:35 PMrp
05/11/2022, 3:37 PMRomain
05/11/2022, 3:38 PMwindow.location.search
is have this errorrp
05/11/2022, 3:39 PM&error=restart_link
?Romain
05/11/2022, 3:41 PMrp
05/11/2022, 3:42 PMRomain
05/11/2022, 3:43 PMrp
05/11/2022, 3:44 PMRomain
05/11/2022, 3:44 PMrp
05/11/2022, 3:44 PMRomain
05/11/2022, 3:46 PMrp
05/11/2022, 3:48 PMRomain
05/11/2022, 3:52 PM