# 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.

**URL:** <https://community.auth0.com/t/im-facing-an-issue-with-my-vue-js-app-when-i-refresh-the-page-in-the-safari-browser-it-logs-me-out-even-though-im-logged-in/193681>\
**Category:** Get Help\
**Tags:** authentication-sessions, sessions\
**Created:** [October 27, 2025, 12:04pm UTC](https://community.auth0.com/t/im-facing-an-issue-with-my-vue-js-app-when-i-refresh-the-page-in-the-safari-browser-it-logs-me-out-even-though-im-logged-in/193681 "2025-10-27T12:04:45Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![theumarrasheed](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/theumarrasheed/32/77184_2.png) [@theumarrasheed](https://community.auth0.com/u/theumarrasheed)\
**Post date:** [October 27, 2025, 12:04pm UTC](https://community.auth0.com/t/im-facing-an-issue-with-my-vue-js-app-when-i-refresh-the-page-in-the-safari-browser-it-logs-me-out-even-though-im-logged-in/193681/1 "2025-10-27T12:04:45Z")

</div>

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.

---

<div class="post-metadata">

**Author:** ![remus.ivan](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/remus.ivan/32/68771_2.png) [@remus.ivan](https://community.auth0.com/u/remus.ivan)\
**Post date:** [October 27, 2025, 4:36pm UTC](https://community.auth0.com/t/im-facing-an-issue-with-my-vue-js-app-when-i-refresh-the-page-in-the-safari-browser-it-logs-me-out-even-though-im-logged-in/193681/3 "2025-10-27T16:36:11Z")

</div>

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](https://auth0.com/docs/authorization/configure-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](https://auth0.com/docs/tokens/refresh-tokens/refresh-token-rotation) and set the `cacheLocation` to “localstorage” when initializing the Auth0 client

This KB articles are related to the matter: [Reloading the Page Causes Logout and Authentication Session Loss](https://support.auth0.com/center/s/article/Reloading-the-page-causes-logout) and [Authentication Lost after Refreshing an SPA](https://support.auth0.com/center/s/article/Why-is-authentication-lost-after-refreshing-my-SPA).

Hope this helps!  
Best regards,  
Remus

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [November 10, 2025, 4:37pm UTC](https://community.auth0.com/t/im-facing-an-issue-with-my-vue-js-app-when-i-refresh-the-page-in-the-safari-browser-it-logs-me-out-even-though-im-logged-in/193681/4 "2025-11-10T16:37:07Z")

</div>

This topic was automatically closed 14 days after the last reply. New replies are no longer allowed.
