Hi, Is it possible to add redirectToPath to Passwo...
# support-questions-legacy
m
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
2 Views