We have encountered a strange behavior when our users uses multiple tabs (SPA). Simple steps how the issue is reproducible:
Open app and login using Auth0 universal login
Inside the page navigate somewhere but by opening new tab
Logout from the 1st tab, tab is redirected back to app login which again is redirected to Auth0 universal login
Logout from the 2nd tab (same redirects in place as in prev. step)
Try login in the 1st tab. Failure received with the following error:
{“statusCode”:403,“description”:“Invalid state”,“name”:“AnomalyDetected”,“code”:“access_denied”}
No Anomaly checks enabled. Looks like at step 4) logout in the 2nd tab does something with the state that interfere with the 1st tab flow. Is that an expected behavior? We use auth0-spa-js in our React app. Any ideas?
I’m having difficulty recreating the behavior using the Auth0 React SDK Quickstarts: Login. Would you mind sharing the options you are passing to the Auth0Provider (be sure to take out any sensitive data such as domain or client ID)?
Apologies for the late reply… Thank you, that works. But this solution is not desirable as we have a requirement to store in memory. Is this something in the lib itself? Can we somehow workaround this one? Thank you!
Unfortunately, I don’t believe so because of the nature of memory storage. It doesn’t persist page refreshes and does not pick up changes in other tabs.