# Issue with Silent Authentication Not Refreshing Token Properly

**URL:** <https://community.auth0.com/t/issue-with-silent-authentication-not-refreshing-token-properly/184791>\
**Category:** Get Help\
**Tags:** configuration, application\
**Created:** [March 31, 2025, 12:14pm UTC](https://community.auth0.com/t/issue-with-silent-authentication-not-refreshing-token-properly/184791 "2025-03-31T12:14:56Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![LisaGray](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lisagray/32/72027_2.png) [@LisaGray](https://community.auth0.com/u/LisaGray)\
**Post date:** [March 31, 2025, 12:14pm UTC](https://community.auth0.com/t/issue-with-silent-authentication-not-refreshing-token-properly/184791/1 "2025-03-31T12:14:56Z")

</div>

Hi everyone,

I’m implementing silent authentication in my application using Auth0, but I’m running into an issue where the token isn’t refreshing as expected. The user remains authenticated, but after the access token expires, the silent authentication request sometimes fails, forcing a full login.

I’ve confirmed that the session is still active, and I’m using `checkSession()` properly. It works most of the time, but occasionally, I get a `login_required` error. Could this be related to third-party cookie policies or something else?

Thanks!

---

<div class="post-metadata">

**Author:** ![gerald.czifra](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/gerald.czifra/32/75301_2.png) [@gerald.czifra](https://community.auth0.com/u/gerald.czifra)\
**Post date:** [March 31, 2025, 7:18pm UTC](https://community.auth0.com/t/issue-with-silent-authentication-not-refreshing-token-properly/184791/3 "2025-03-31T19:18:26Z")

</div>

Hi @LisaGray

Welcome to the Auth0 Community!

I believe what you might be missing is taking advantage of [Refresh Token Rotation](https://auth0.com/docs/libraries/auth0-single-page-app-sdk#use-rotating-refresh-tokens), which uses the `getTokenSilently()` method in order to exchange an Access token with a Refresh Token, if the user needs to [continue their session without re-logging in](https://auth0.com/docs/manage-users/sessions/session-lifetime-limits#:~:text=session%2C%20use%20the-,getTokenSilently(),-method%20to%20request). As long a this is called while the Access token is still valid, the token rotation will take place and a new login will not be needed from the user.

I also recomment looking through this doc for additional information : [Auth0Client | @auth0/auth0-spa-js](https://auth0.github.io/auth0-spa-js/classes/Auth0Client.html)

Hope this helped!  
Gerald

---

<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:** [April 14, 2025, 7:19pm UTC](https://community.auth0.com/t/issue-with-silent-authentication-not-refreshing-token-properly/184791/4 "2025-04-14T19:19:01Z")

</div>

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