Hi, Is it possible to add redirectToPath to Passwordless Magic link login? When trying to add redirectToPath param to Magic link and have it redirected via custom settings on the frontendside:
Copy code
getRedirectionURL: async (context, userContext) => {
if (context.action === 'SUCCESS') {
if (context.redirectToPath !== undefined) {
// we are navigating back to where the user was before they authenticated
return context.redirectToPath;
}
return '/';
}
return undefined;
}
value for context.redirectToPath is always empty? It doesn't look for the redirectToPath?
Thanks
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).