# When silently renewing token using @okta/okta-react 3.0.10 it refreshes the whole page

**URL:** <https://devforum.okta.com/t/when-silently-renewing-token-using-okta-okta-react-3-0-10-it-refreshes-the-whole-page/14858>\
**Category:** Questions\
**Created:** [June 22, 2021, 6:43pm UTC](https://devforum.okta.com/t/when-silently-renewing-token-using-okta-okta-react-3-0-10-it-refreshes-the-whole-page/14858 "2021-06-22T18:43:20Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![amitrajula1](https://avatars.discourse-cdn.com/v4/letter/a/c77e96/32.png) [@amitrajula1](https://devforum.okta.com/u/amitrajula1)\
**Post date:** [June 22, 2021, 6:43pm UTC](https://devforum.okta.com/t/when-silently-renewing-token-using-okta-okta-react-3-0-10-it-refreshes-the-whole-page/14858/1 "2021-06-22T18:43:20Z")

</div>

okta-react: 3.0.10  
okta-signin-widget: 3.9.2

Currently application is reloaded when it’s trying to get the refresh access token, hence losing all the changes on active page. The app used to silently refresh and get the updated token, but recently its having this refresh issue.

I’m using .getAccessToken() method, which returns the promise, and if it detects a token has expired, it will refresh and return a new one. Reference:

> [@Do I need to manually refresh tokens in my SPA?](https://devforum.okta.com/t/do-i-need-to-manually-refresh-tokens-in-my-spa/8064):
>
> Hi, I’ve added authentication onto my React app. I’m now about to attach the token to requests to my API (and add Okta auth there - using Spring Boot that side). Anyhow my question, in local storage I notice: okta-cache-storage and okta-token-storage - these both contains a expiresAt value. What happens when this time is reached? Do I need to manually refresh the token? Do i need any other consideration when making my back end/API calls? Any help would be appreicated. Thanks.

I have also enabled EA token rotation feature, but no luck.

> **[Refresh access tokens | Okta Developer](https://developer.okta.com/docs/guides/refresh-tokens/main/#refresh-token-rotation)**
>
> Secure, scalable, and highly available authentication and user management for any app.

Any help would be appreciated.

---

<div class="post-metadata">

**Author:** ![andrea](https://sea1.discourse-cdn.com/oktadev/user_avatar/devforum.okta.com/andrea/32/2172_2.png) [@andrea](https://devforum.okta.com/u/andrea)\
**Post date:** [February 8, 2024, 6:33pm UTC](https://devforum.okta.com/t/when-silently-renewing-token-using-okta-okta-react-3-0-10-it-refreshes-the-whole-page/14858/2 "2024-02-08T18:33:51Z")

</div>

Closed on February 8, 2024, 6:33pm UTC


