I’m facing an issue with my Vue.js app — when I refresh the page in the Safari browser, it logs me out even though I’m logged in.
Hi @theumarrasheed,
Welcome to the Auth0 Community!
This behavior is happening due to Safari’s blocking 3rd party cookies policy, which are required for silent authentication to take place.
To prevent this from occurring you can either:
- set up a custom domain that matches the top-level domain
- use Refresh Token Rotation and set the
cacheLocationto “localstorage” when initializing the Auth0 client
This KB articles are related to the matter: Reloading the Page Causes Logout and Authentication Session Loss and Authentication Lost after Refreshing an SPA.
Hope this helps!
Best regards,
Remus