# Update access token expiration time via API call

**URL:** <https://community.auth0.com/t/update-access-token-expiration-time-via-api-call/87764>\
**Category:** Get Help\
**Tags:** jwt, api, access-token, login, auth0\
**Created:** [July 27, 2022, 7:33pm UTC](https://community.auth0.com/t/update-access-token-expiration-time-via-api-call/87764 "2022-07-27T19:33:50Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![lucas.gonzalez](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/lucas.gonzalez/32/33884_2.png) [@lucas.gonzalez](https://community.auth0.com/u/lucas.gonzalez)\
**Post date:** [July 27, 2022, 7:33pm UTC](https://community.auth0.com/t/update-access-token-expiration-time-via-api-call/87764/1 "2022-07-27T19:33:50Z")

</div>

We want to update the user `access_token` expiration time via an API call to Auth0.

The flow should be:

- User logins
- After X period of time, a modal appears asking if the user will stay logged or not
- If click yes, we update the access token

Is it possible to do it via API call?  
If not, how can I achieve this expected result?

Thanks!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [July 28, 2022, 12:25am UTC](https://community.auth0.com/t/update-access-token-expiration-time-via-api-call/87764/3 "2022-07-28T00:25:03Z")

</div>

Hey there @lucas.gonzalez !

> [@lucas.gonzalez](#):
>
> We want to update the user `access_token` expiration time via an API call to Auth0.

Unfortunately, you can’t update the expiration (or any claim) via an API call to Auth0. What you can do is request an entirely new access token and thus updating the expiration. For a use case like you’ve described I recommend looking into Silent Authentication:

> **[Configure Silent Authentication](https://auth0.com/docs/authenticate/login/configure-silent-authentication)**
>
> Learn how to keep users logged in to your application using silent authentication.

Hope this helps!

---

<div class="post-metadata">

**Author:** ![ty.frith](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ty.frith/32/58484_2.png) [@ty.frith](https://community.auth0.com/u/ty.frith)\
**Post date:** [August 12, 2022, 12:25am UTC](https://community.auth0.com/t/update-access-token-expiration-time-via-api-call/87764/4 "2022-08-12T00:25:39Z")

</div>

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