Hey 😊 I'm trying to redirect the user to the prev...
# support-questions-legacy
i
Hey 😊 I'm trying to redirect the user to the previous location after logging in, following this guide
https://supertokens.com/docs/thirdpartyemailpassword/common-customizations/redirecting-post-login
but after the user completes log in (with google) the
context.redirectToPath
is undefined and so this flow doesn't work i'm using react-router-dom and in case a session doesn't exist I use your api (
redirectToAuth
) to redirect the user to auth screen also, i couldn't find something similar with the Session recipe which i would like to support as well
r
hey! for social auth, the redirect info is stored in localstorage. Are you using our default UI for the callback screen as well?
i
i'm not sure I understand which callback screen you're referring 🙂 i'm calling getSuperTokensRoutesForReactRouterDom inside react router, if that helps
r
the one in which google redirects the user back to your app. That screen - is that being handled by supertokens or have you built a custom one for that?
i
i haven't build a custom one
r
i see. Then it should be working.. can you please open an issue about this on our githuhb? We will have a look
i
sure!
r
thanks
3 Views