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

# リフレッシュトークンを取り消す

> 侵害された場合は、このエンドポイントを使用してリフレッシュトークンを無効にします。

`POST /oauth/revoke`

侵害された場合は、このエンドポイントを使用してリフレッシュトークンを無効にします。

このエンドポイントの動作は、[リフレッシュトークンの取り消しによって付与を削除する](https://auth0.com/docs/ja-jp/tokens/refresh-tokens/revoke-refresh-tokens#refresh-tokens-and-grants)トグルの状態によって決まります。
このトグルを有効にすると、取り消しの要求ごとに、特定のトークンだけでなく、同じ認可付与に基づくその他すべてのトークンを無効にします。つまり、**同じユーザー、アプリケーション、オーディエンスに発行されたリフレッシュトークンがすべて取り消されます**。
このトグルを無効にすると、リフレッシュトークンのみが取り消され、付与はそのままです。
備考

* クライアントシークレットを安全に保護できない非機密アプリケーションについては（ネイティブアプリなど）、エンドポイントがクライアントシークレットを渡さないことをサポートしていますが、アプリケーション自体のプロパティ`tokenEndpointAuthMethod`が`none`に設定される必要があります。これは、UI（[Dashboard > アプリケーション > アプリケーション設定](https://manage.auth0.com/dashboard)）または[Management API](https://auth0.com/docs/ja-jp/api/management/v2/applications/patch-applications-by-id)を使用して設定できます。

詳しく学ぶ

* [リフレッシュトークン](https://auth0.com/docs/ja-jp/secure/tokens/refresh-tokens)

## Parameters

<ParamField body="client_id" type="string">
  アプリケーションの`client_id`です。
</ParamField>

<ParamField body="client_assertion" type="string">
  アプリケーションの資格情報を含む署名済みアサーションを含んだJWTです。秘密鍵JWTがアプリケーション認証方法の場合は必須。
</ParamField>

<ParamField body="client_assertion_type" type="string">
  値は`urn:ietf:params:oauth:client-assertion-type:jwt-bearer`です。秘密鍵JWTがアプリケーション認証方法の場合は必須。
</ParamField>

<ParamField body="client_secret" type="string">
  アプリケーションの`client_secret`です。クライアントシークレットBasicまたはクライアントシークレットPostがアプリケーション認証方法の場合は必須。通常のWebアプリケーション**のみ**必須。
</ParamField>

<ParamField body="token" type="string">
  取り消したいリフレッシュトークンです。
</ParamField>

## Response

| Status  | Description           |
| ------- | --------------------- |
| 200     | (empty-response-body) |
| 400     | 不正なリクエスト              |
| 401     | 未認可                   |
| default | 予期しないエラー              |
