Auth0 Home Blog Docs

React SPA doesn't login on refresh

Hi, I’m having a problem where the user doesn’t remain authenticated when I refresh the browser and the second one is that when I set the route on the address bar and tried to login it doesn’t redirect it to that route.

I tried to reproduce the problem in codesandbox but it doesn’t work on firefox but in chrome instead.