# React App Page Refreshes When Getting New Token

**URL:** <https://devforum.okta.com/t/react-app-page-refreshes-when-getting-new-token/18503>\
**Category:** Questions\
**Created:** [December 13, 2021, 1:25pm UTC](https://devforum.okta.com/t/react-app-page-refreshes-when-getting-new-token/18503 "2021-12-13T13:25:45Z")\
**Posts on this page:** 2\
**Page:** 1

<div class="post-metadata">

**Author:** ![zernst3](https://avatars.discourse-cdn.com/v4/letter/z/c37758/32.png) [@zernst3](https://devforum.okta.com/u/zernst3)\
**Post date:** [December 13, 2021, 1:25pm UTC](https://devforum.okta.com/t/react-app-page-refreshes-when-getting-new-token/18503/1 "2021-12-13T13:25:45Z")

</div>

Hi all, I have a very simple question, hopefully. Currently, my React App is automatically page-refreshing when it gets a new token from Okta. I believe that the refresh rate is somehow set in the Okta dashboard. Regardless, is there a way to prevent a whole page refresh so my users wouldn’t loose their work in my react app? Thank you.

---

<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, 8:12pm UTC](https://devforum.okta.com/t/react-app-page-refreshes-when-getting-new-token/18503/2 "2024-02-08T20:12:26Z")

</div>


