# How to update Access Token Lifetime

**URL:** <https://community.auth0.com/t/how-to-update-access-token-lifetime/60823>\
**Category:** Get Help\
**Created:** [April 9, 2021, 8:41am UTC](https://community.auth0.com/t/how-to-update-access-token-lifetime/60823 "2021-04-09T08:41:17Z")\
**Posts on this page:** 5\
**Page:** 1

<div class="post-metadata">

**Author:** ![kiran.ms](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kiran.ms/32/28442_2.png) [@kiran.ms](https://community.auth0.com/u/kiran.ms)\
**Post date:** [April 9, 2021, 8:41am UTC](https://community.auth0.com/t/how-to-update-access-token-lifetime/60823/1 "2021-04-09T08:41:18Z")

</div>

Hi,

How can I update the lifetime of the access token?  
I have a Native app and I dont see any option there.  
IU went through the link [https://auth0.com/docs/tokens/access-tokens/update-access-token-lifetime](https://auth0.com/docs/tokens/access-tokens/update-access-token-lifetime) before posting the question here.  
I see option to update id token lifetime but not access token.

---

<div class="post-metadata">

**Author:** ![ricardo.batista](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/ricardo.batista/32/7711_2.png) [@ricardo.batista](https://community.auth0.com/u/ricardo.batista)\
**Post date:** [April 9, 2021, 9:45am UTC](https://community.auth0.com/t/how-to-update-access-token-lifetime/60823/2 "2021-04-09T09:45:21Z")

</div>

Hi @kiran.ms

The access token lifetime is not in the application itself, but in the API that you’re using as the audience in your authentication request. As an example, if you were triggering the authentication request with:

```
Auth0
    .webAuth()
    .audience("https://yourdomain.com/api")
    .start { result in
        switch result {
        case .success(let credentials):
            print("Obtained credentials: \(credentials)")
        case .failure(let error):
            print("Failed with \(error)")
        }
    }

```

You’d have a custom API with identifier `https://yourdomain.com/api` registered in the API section of the Auth0 dashboard, where you could specify the access token lifetime in the **Token Expiration** field.

> **Token Expiration (Seconds)** : The amount of time (in seconds) before the Auth0 Access Token expires. The default value is 86400 seconds (24 hours). The maximum value you can set is 2592000 seconds (30 days).

> **[Register APIs](https://auth0.com/docs/get-started/auth0-overview/set-up-apis)**
>
> Learn how to register APIs in the Auth0 Dashboard.

> **[API Settings](https://auth0.com/docs/get-started/apis/api-settings)**
>
> Describes the settings related to APIs available in the Auth0 Dashboard.

---

<div class="post-metadata">

**Author:** ![kiran.ms](https://sea1.discourse-cdn.com/auth0/user_avatar/community.auth0.com/kiran.ms/32/28442_2.png) [@kiran.ms](https://community.auth0.com/u/kiran.ms)\
**Post date:** [April 9, 2021, 11:36am UTC](https://community.auth0.com/t/how-to-update-access-token-lifetime/60823/3 "2021-04-09T11:36:42Z")

</div>

Thanks @ricardo.batista . It worked.

---

<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:** [April 12, 2021, 11:41am UTC](https://community.auth0.com/t/how-to-update-access-token-lifetime/60823/4 "2021-04-12T11:41:10Z")

</div>

We are here for you!

---

<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:** [April 27, 2021, 11:41am UTC](https://community.auth0.com/t/how-to-update-access-token-lifetime/60823/5 "2021-04-27T11:41:27Z")

</div>

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