Login required on mobile browser


I’m getting an error while using the SDK with react only on mobile browser.

I’m calling loginWithRedirect and then getAccessTokenSilently and it throws the error “Login required”.

My configuration is the following:

        audience: "AUDIENCE",
        redirect_uri: window.location.origin + "/login",
        cacheLocation: "localstorage",
        useRefreshTokens: true,
        scope: "read:current_user",
"@auth0/auth0-react": "^2.0.0",
"react": "^18.2.0",
"react-dom": "^18.2.0",
"react-router-dom": "^6.8.1"

What should I do ? (No answers found on other topics)

Hey there!

In order to handle that most effectively I would encourage you to raise it as a GitHub issue in the repo so we can discuss it directly with the SDK maintainers.

Once you do that you can share a link here so we can ping them. Thank you!

1 Like

Fixed my issue, solution here : Github