When a user goes to my production site, there is a button they can click to redirect with login. When that user has never logged in before (or its been a long time) then they are prompted to login with the universal login screen and are redirected back to our site’s main page.
Otherwise the site redirects to the login screen BUT then navigates away before the screen loads. The user is put back on my home screen and the “isAuthenticated” hook comes back false. There is also a ?code=nonsensecode in the url’s parameters.
This issue does not exist in my dev site. Which is hosted in the same way as the production site. I have two auth0 tenants (one for each environment). This is a react app.
What could be the problem and how would you go about troubleshooting it?