Authentication is lost after page refresh

Hi @JoshuaAYoung,

I’m not aware of any recent changes in how sessions are dealt with that would cause auth to be lost. Blocked third-party cookies are an increasing cause of this behavior because it is the default setting in some browsers, including Safari.

Changing the type of application should not affect this behavior. I’d suggest testing your application with third-party cookies blocked in the browser and not blocked in the browser in order to confirm if that is the issue. If the auth is lost after refresh only when third-party cookies are blocked, then that will confirm why the auth is lost after refresh.

Once confirmed, you can resolve the issue by either using a Custom Domain or adjusting the cache location that is set in the Auth0Provider component. A code example is provided here: Why is authentication lost after refreshing my single page application?

1 Like