Update Access Token Lifetime

You can change the access token lifetime using the Auth0 Dashboard.

  1. Go to Dashboard > Applications > APIs and click the name of the API to view.

    Dashboard Applications APIs List
  2. Locate the Token Expiration (Seconds) field, and enter the appropriate access token lifetime (in seconds) for the API. Default value is 86,400 seconds (24 hours). Maximum value is 2,592,000 seconds (30 days). The Token Expiration For Browser Flows (Seconds) field refers to access tokens issued for the API via implicit and hybrid flows and does not cover all flows initiated from browsers. For example, the PKCE flow (used in auth0-js-spa SDK) can be initiated from the browser, but it refers to the Token Expiration not the Token Expiration For Browser Flows value.

    Dashboard - API - Token Settings - Expiration
  3. Click Save Changes.

Learn more