I’m implementing @auth0/auth0-react and facing an authentication flow issue.
Current Issue: Users authenticate on our mobile app, then navigate to our web app, but get redirected to the login page instead of staying logged in.
Expected Behavior: Users should remain authenticated across both mobile and web platforms without needing to log in twice.
What I’ve Tried: I attempted using getAccessTokenSilently() to check for an active session, but this approach didn’t resolve the issue.
Questions:
-
How should I handle cross-platform authentication with
@auth0/auth0-react? -
Is there a recommended way to check for existing tokens/sessions in the web app?
-
Are there specific configuration settings I should consider for this scenario?
Any guidance or examples would be greatly appreciated!