Silent login: Users redirected to login after mobile authentication

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:

  1. How should I handle cross-platform authentication with @auth0/auth0-react?

  2. Is there a recommended way to check for existing tokens/sessions in the web app?

  3. Are there specific configuration settings I should consider for this scenario?

Any guidance or examples would be greatly appreciated!

1 Like

Hi @sudyaljyoti,

Welcome to the Auth0 Community!

The latest and most modern solution to this use case was recently made available in EA and is described in our Native to Web SSO and Configure and Implement Native to Web SSO documentation, which relies on a session_transfer_token , instead of a classic SSO cookie that might be blocked for various reasons due to browsers policies trying to prevent sharing third-party or cross-site cookies.

Thanks,

Remus