# Retrieving a new JWT before the current one expires?

**URL:** <https://devforum.okta.com/t/retrieving-a-new-jwt-before-the-current-one-expires/224>\
**Category:** OAuth/OIDC\
**Tags:** widget\
**Created:** [July 12, 2017, 5:56pm UTC](https://devforum.okta.com/t/retrieving-a-new-jwt-before-the-current-one-expires/224 "2017-07-12T17:56:04Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@nick](https://devforum.okta.com/u/nick)\
**Post date:** [July 12, 2017, 5:56pm UTC](https://devforum.okta.com/t/retrieving-a-new-jwt-before-the-current-one-expires/224/1 "2017-07-12T17:56:04Z")

</div>

I’ve successfully configured my auth server and Okta Sign-in Widget such that I am able to authenticate and receive a JWT in my app. However, since the JWT has an expiration time, I am wondering how I would subsequently retrieve a new JWT before the current one expires? If you would please let me know or point me to the relevant API documentation, that would be greatly appreciated. Thanks in advance!

---

<div class="post-metadata">

**Author:** ![nick](https://avatars.discourse-cdn.com/v4/letter/n/f9ae1b/32.png) [@nick](https://devforum.okta.com/u/nick)\
**Post date:** [July 12, 2017, 9:22pm UTC](https://devforum.okta.com/t/retrieving-a-new-jwt-before-the-current-one-expires/224/2 "2017-07-12T21:22:04Z")

</div>

Problem solved. Add the token to oktaSignIn.tokenManager.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/oktadev/original/1X/589c4c5f80de422d01f47cee7185a7fb8227835c.png) [@system](https://devforum.okta.com/u/system)\
**Post date:** [January 12, 2024, 7:06pm UTC](https://devforum.okta.com/t/retrieving-a-new-jwt-before-the-current-one-expires/224/3 "2024-01-12T19:06:33Z")

</div>

Closed on January 12, 2024, 7:06pm UTC

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