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
rp_st
09/05/2022, 11:33 AM
hey! for social auth, the redirect info is stored in localstorage. Are you using our default UI for the callback screen as well?
i
idanh.
09/05/2022, 11:37 AM
i'm not sure I understand which callback screen you're referring 🙂
i'm calling getSuperTokensRoutesForReactRouterDom inside react router, if that helps
r
rp_st
09/05/2022, 11:38 AM
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
idanh.
09/05/2022, 11:38 AM
i haven't build a custom one
r
rp_st
09/05/2022, 11:39 AM
i see. Then it should be working.. can you please open an issue about this on our githuhb? We will have a look
SuperTokens is an open source authentication solution offering features like: Different types of login: Email / password, Passwordless (OTP or Magic link based).