# What is the default expiration given to an access token?

**URL:** <https://community.auth0.com/t/what-is-the-default-expiration-given-to-an-access-token/45479>\
**Category:** Get Help\
**Tags:** jwt, lock, auth0\
**Created:** [June 29, 2020, 5:28pm UTC](https://community.auth0.com/t/what-is-the-default-expiration-given-to-an-access-token/45479 "2020-06-29T17:28:44Z")\
**Posts on this page:** 3\
**Page:** 1

<div class="post-metadata">

**Author:** ![bernard.baker.me](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/bernard.baker.me/32/17697_2.png) [@bernard.baker.me](https://community.auth0.com/u/bernard.baker.me)\
**Post date:** [June 29, 2020, 5:28pm UTC](https://community.auth0.com/t/what-is-the-default-expiration-given-to-an-access-token/45479/1 "2020-06-29T17:28:44Z")

</div>

🕵️‍♂️

How can I extend the length of time an access token has before it expires?

- What is the default time assigned to an access token?
- Should I use a refresh token?

Thanks Auth0 Community ❤

---

<div class="post-metadata">

**Author:** ![konrad.sopala](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/konrad.sopala/32/13516_2.png) [@konrad.sopala](https://community.auth0.com/u/konrad.sopala)\
**Post date:** [June 30, 2020, 2:22pm UTC](https://community.auth0.com/t/what-is-the-default-expiration-given-to-an-access-token/45479/2 "2020-06-30T14:22:30Z")

</div>

Hey there!

Have you had a chance to visit that doc of ours?

> **[Update Access Token Lifetime](https://auth0.com/docs/secure/tokens/access-tokens/update-access-token-lifetime)**
>
> Describes how to update the access token lifetime for an API using the Auth0 Dashboard.

- The default Access Token Lifetime is **86400 seconds (24 hours)**
- The maximum Access Token Lifetime is **2592000 seconds (30 days)**

and yes you should be also using Refresh Tokens 🙂

More on that here:

> **[Refresh Tokens](https://auth0.com/docs/secure/tokens/refresh-tokens)**
>
> Describes how refresh tokens work to allow the application to ask Auth0 to issue a new access token or ID token without having to re-authenticate the user.

---

<div class="post-metadata">

**Author:** ![system](https://global.discourse-cdn.com/auth0/original/3X/b/5/b560f266932fcce5d57f09a6595bd50518cae3f3.jpeg) [@system](https://community.auth0.com/u/system)\
**Post date:** [July 15, 2020, 2:22pm UTC](https://community.auth0.com/t/what-is-the-default-expiration-given-to-an-access-token/45479/3 "2020-07-15T14:22:32Z")

</div>

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