> ## 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.

# リフレッシュトークン発行の有効化

> /auth/token APIを使用して、リフレッシュトークンを有効にするための設定について説明しています。

<Info>
  For **Authlete 2.x** documentation, see [2.x version](/v2/configuration-reference/token-lifecycle-policies/how-to-enable-refresh-token-grant-type).
</Info>

[/auth/token](/api-reference/authorization-endpoint/issue-authorization-response)
API にて、アクセストークンに加えてリフレッシュトークンを返却するためには、Authlete サービスと、そのサービスに登録されているクライアントの両方に設定が必要となります。

設定が行われていない場合、Refresh Token Grant Type (grant\_type=refresh\_token) が無効になります。また他のグラントタイプ（Authorization Code Grant Type (grant\_type=authorization\_code) など）を処理する際にも、リフレッシュトークンが発行されません。

設定項目は以下の通りです。

## Authlete サービスの設定

「サポートする認可種別」に REFRESH\_TOKEN を含む必要があります。この設定は「サービス管理者コンソール」の「認可」タブにあります。\\

<img src="https://mintcdn.com/authlete/NmFoIJ4VSX_LOgob/img/kb/ja/oauth-and-openid-connect/refresh-tokens/how-to-enable-refresh-token-grant-type_1.png?fit=max&auto=format&n=NmFoIJ4VSX_LOgob&q=85&s=f4d3dd6897700ce62999bb0e61491632" alt="how-to-enable-refresh-token-grant-type_1" width="1204" height="359" data-path="img/kb/ja/oauth-and-openid-connect/refresh-tokens/how-to-enable-refresh-token-grant-type_1.png" />

*Supported Grant Types*

## クライアントの設定

> クライアント設定の必須化は Authlete  2.1 以降からです。それ以前のバージョンでは必須ではありません。

「認可種別」に REFRESH\_TOKEN を含む必要があります。この設定は「クライアントアプリ開発者コンソール」の「認可」タブにあります。\\

<img src="https://mintcdn.com/authlete/NmFoIJ4VSX_LOgob/img/kb/ja/oauth-and-openid-connect/refresh-tokens/how-to-enable-refresh-token-grant-type_2.png?fit=max&auto=format&n=NmFoIJ4VSX_LOgob&q=85&s=4fc4b1c739719db7ae5475cda68caebe" alt="how-to-enable-refresh-token-grant-type_2" width="1630" height="476" data-path="img/kb/ja/oauth-and-openid-connect/refresh-tokens/how-to-enable-refresh-token-grant-type_2.png" />

*Grant Types*
