> ## Documentation Index
> Fetch the complete documentation index at: https://developers.authlete.com/llms.txt
> Use this file to discover all available pages before exploring further.

# Changing token duration

> Explanation on how changing token duration settings in Authlete affects access tokens and refresh tokens.

<Note>
  This page is for **Authlete 2.x**. For current (3.0) documentation, see [this page](/configuration-reference/tokens-and-claims/changing-token-duration).
</Note>

## Overview

After changing "token duration" settings on an Authlete service that has been issuing tokens, Authlete will:

* Preserve duration settings for tokens previously issued
* Apply the new duration settings for tokens to be issued after the change

This article explains how the settings affect access tokens and refresh tokens.

## Access Tokens

The new duration settings are to be applied on (re)issuing access tokens on token requests with various grant types including refresh token grant.\\

<img src="https://mintcdn.com/authlete/KNbgpS77nJg5j2Vw/img/kb/en/oauth-and-openid-connect/tokens/token-duration-1.png?fit=max&auto=format&n=KNbgpS77nJg5j2Vw&q=85&s=6f645b44640451d4954fa9c09ed367d9" alt="token-duration-1" width="960" height="436" data-path="img/kb/en/oauth-and-openid-connect/tokens/token-duration-1.png" />

## Refresh Tokens

The change may affect refresh tokens based on "**Refresh Token Continuous Use**" settings.<img src="https://mintcdn.com/authlete/KNbgpS77nJg5j2Vw/img/kb/en/oauth-and-openid-connect/tokens/changing-token-durations_1.png?fit=max&auto=format&n=KNbgpS77nJg5j2Vw&q=85&s=b26d76e1fbe5c8b20b3255767a21ace5" alt="changing-token-durations_1" width="536" height="189" data-path="img/kb/en/oauth-and-openid-connect/tokens/changing-token-durations_1.png" />

*“Refresh Token Continuous Use” in “Token” tab*

* If "**Kept**" is selected

  * The new duration won't be effective until the existing refresh token is expired and reissued.\\
    <img src="https://mintcdn.com/authlete/KNbgpS77nJg5j2Vw/img/kb/en/oauth-and-openid-connect/tokens/token-duration-2.png?fit=max&auto=format&n=KNbgpS77nJg5j2Vw&q=85&s=f78da0e558b56b0ca32a0361424e27d2" alt="token-duration-2" width="967" height="436" data-path="img/kb/en/oauth-and-openid-connect/tokens/token-duration-2.png" />
* If "**Not kept**" is selected

  * The new duration is effective for a new refresh token that is to be issued along with a new access token on refresh token grant (using the old refresh token).<img src="https://mintcdn.com/authlete/KNbgpS77nJg5j2Vw/img/kb/en/oauth-and-openid-connect/tokens/token-duration-3.png?fit=max&auto=format&n=KNbgpS77nJg5j2Vw&q=85&s=59275b78a104f4535b112ce7b1df350c" alt="token-duration-3" width="967" height="436" data-path="img/kb/en/oauth-and-openid-connect/tokens/token-duration-3.png" />

### See Also

[Refreshing a refresh token when the grant type is "refresh\_token"](/configuration-reference/tokens-and-claims/refresh-tokens-after-being-used)
