# Token lifetimes and refreshing token without redirect in SPA

**URL:** <https://devforum.okta.com/t/token-lifetimes-and-refreshing-token-without-redirect-in-spa/12807>\
**Category:** Questions\
**Created:** [February 5, 2021, 9:51am UTC](https://devforum.okta.com/t/token-lifetimes-and-refreshing-token-without-redirect-in-spa/12807 "2021-02-05T09:51:08Z")\
**Posts on this page:** 1\
**Showing post:** 4

<div class="post-metadata">

**Author:** ![tyty](https://avatars.discourse-cdn.com/v4/letter/t/35a633/32.png) [@tyty](https://devforum.okta.com/u/tyty)\
**Post date:** [February 5, 2021, 7:17pm UTC](https://devforum.okta.com/t/token-lifetimes-and-refreshing-token-without-redirect-in-spa/12807/4 "2021-02-05T19:17:21Z")

</div>

You have multiple options, but regarding refresh tokens use with auth code + pkce, it’s a newer feature as outlined [here](https://devforum.okta.com/t/okta-auth-js-autorenew-process/12640/5) so some of the older information out there may be a bit outdated - Are you using any Okta front-end SDK or strictly okta-auth-js?

---

_[View the full topic](https://devforum.okta.com/t/token-lifetimes-and-refreshing-token-without-redirect-in-spa/12807)._
