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

# リフレッシュトークンのローテーションを無効にする

> リフレッシュトークンのローテーションを無効にする方法について説明します。

export const AuthCodeBlock = ({filename, icon, language, highlight, children}) => {
  const [processedChildren, setProcessedChildren] = useState(children);
  useEffect(() => {
    let unsubscribe = null;
    function init() {
      unsubscribe = window.autorun(() => {
        let processedChildren = children;
        for (const [key, value] of window.rootStore.variableStore.values.entries()) {
          processedChildren = processedChildren.replace(new RegExp(key, "g"), value);
        }
        setProcessedChildren(processedChildren);
      });
    }
    if (window.rootStore) {
      init();
    } else {
      window.addEventListener("adu:storeReady", init);
    }
    return () => {
      window.removeEventListener("adu:storeReady", init);
      unsubscribe?.();
    };
  }, [children]);
  return <CodeBlock filename={filename} icon={icon} language={language} lines highlight={highlight}>
      {processedChildren}
    </CodeBlock>;
};

export const codeExample = `const auth0 = await createAuth0Client({
  domain: '{yourDomain}',
  client_id: '{yourClientId}',
  audience: '{yourApiIdentifier}',
  useRefreshTokens: false
});`;

Dashboardまたは<Tooltip data-tooltip-id="react-containers-DefinitionTooltip-0" href="/docs/ja-JP/ja-jp/glossary?term=management-api" tip="Management API: 顧客が管理タスクを実行できるようにするための製品。" cta="用語集の表示">Management API</Tooltip>を使用して各アプリケーションのリフレッシュトークンのローテーションを無効にできます。

<div id="disable-with-the-dashboard">
  ## Dashboardでの無効化
</div>

1. [Auth0 Dashboard](https://manage.auth0.com/#)から **［Applications（アプリケーション）］>［Applications（アプリケーション）］** に移動して、構成するアプリケーションを選択します。
2. ［Settings（設定）］タブの［Refresh Token Rotation（リフレッシュトークンのローテーション）］セクションにある［Allow Refresh Token Rotation（リフレッシュトークンのローテーションを許可する）］トグルを無効にします。
3. 画面の下部にある **［Save Changes（変更を保存）］** をクリックします。

<div id="disable-with-the-management-api">
  ## Management APIでの無効化
</div>

1. 以下のようにManagement APIを使用して、各アプリケーションのローテーションリフレッシュトークンのローテーションローテーションを無効にします。

   <AuthCodeBlock children={codeExample} language="javascript" />

2. ローテーションなしのリフレッシュトークン設定を以下のように構成します。

   ```http lines theme={null}
   PATCH /api/v2/clients/{client_id}
   {
     "refresh_token": {
        "rotation_type": "non-rotating",
        "expiration_type": "non-expiring"
      }
   }
   ```

<div id="learn-more">
  ## もっと詳しく
</div>

* [リフレッシュトークンのローテーション](/docs/ja-JP/ja-jp/secure/tokens/refresh-tokens/refresh-token-rotation)
* [リフレッシュトークンのローテーションを構成する](/docs/ja-JP/ja-jp/secure/tokens/refresh-tokens/configure-refresh-token-rotation)
* [リフレッシュトークンのローテーションを使用する](/docs/ja-JP/ja-jp/secure/tokens/refresh-tokens/use-refresh-token-rotation)
