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

# 確認

> Universal Login の `confirmation` 画面をカスタマイズするために使用できるすべてのフックとメソッドについて説明します。

`confirmation` 画面は、Auth0 が自動サインアップの対象となる可能性を検出した場合、OTP の検証後に表示されます。ユーザーはここでアカウントを作成するかどうかを確認できます。

<Frame>
  <img style={{maxHeight:"400px"}} src="https://mintcdn.com/translations/TvNuDruxMwBrv3fq/docs/images/cdy7uua7fh8z/ACUL/confirmation.png?fit=max&auto=format&n=TvNuDruxMwBrv3fq&q=85&s=e7d2fde2a115a91750e0775e966d1764" alt="確認画面" width="459" height="612" data-path="docs/images/cdy7uua7fh8z/ACUL/confirmation.png" />
</Frame>

<div id="import">
  ## インポート
</div>

各画面には、それぞれ専用のフックとメソッドがあります。SDK では、各画面について**部分インポート**と**ルートインポート**を利用できます。

* 部分インポートを使用すると、特定のユースケースに必要なコードだけを含めることができます。
* ルートインポートを使用すると、単一のバンドルからすべての画面を読み込めます。すべての画面を1つの統合ビルドで処理する場合に便利です。

```jsx Import Example theme={null}
// ルートインポート
import { useConfirmation } from '@auth0/auth0-acul-react';

// 部分インポート
import {
  useConfirmation,
  // コンテキストフック
  useUser,
  useTenant,
  useBranding,
  useClient,
  useOrganization,
  usePrompt,
  useScreen,
  useTransaction,
  useUntrustedData,
  // 共通フック
  useCurrentScreen,
  useAuth0Themes,
  useErrors,
  // ユーティリティフック
  useChangeLanguage,
  // メソッド
  proceedToSignup,
  goBack,
} from '@auth0/auth0-acul-react/confirmation';

function ConfirmationScreen() {
  const { proceedToSignup } = useConfirmation();
  return (
    <button onClick={() => proceedToSignup()}>
      Create Account
    </button>
  );
}
```

<div id="context-hooks">
  ## コンテキストフック
</div>

`confirmation`画面で、Auth0のコンテキストデータに読み取り専用でアクセスするための画面スコープのフックです。`@auth0/auth0-acul-react/confirmation`からインポートします。

<ParamField body="useBranding" type={<span>() =&gt; <a href="/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/BrandingMembers">BrandingMembers</a></span>}>
  このフックは、`confirmation`画面に表示されるロゴ、色、テーマ設定などのブランディング設定を提供します。

  ```jsx Example theme={null}
  import { useBranding } from '@auth0/auth0-acul-react/confirmation';
  function CustomTheme() {
    const branding = useBranding();
  }
  ```
</ParamField>

<ParamField body="useClient" type={<span>() =&gt; <a href="/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/ClientMembers">ClientMembers</a></span>}>
  このフックは、`confirmation`画面の`id`、`name`、`logoUrl`など、クライアントに関する設定を提供します。

  ```jsx Example theme={null}
  import { useClient } from '@auth0/auth0-acul-react/confirmation';
  function AppInfo() {
    const client = useClient();
  }
  ```
</ParamField>

<ParamField body="useOrganization" type={<span>() =&gt; <a href="/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/OrganizationMembers">OrganizationMembers</a></span>}>
  このフックは、ユーザーの組織に関する情報を提供します。組織コンテキストがない場合は`null`を返します。

  ```jsx Example theme={null}
  import { useOrganization } from '@auth0/auth0-acul-react/confirmation';
  function OrgSelector() {
    const organization = useOrganization();
    if (!organization) {
      return <p>No organization context</p>;
    }
  }
  ```
</ParamField>

<ParamField body="usePrompt" type={<span>() =&gt; <a href="/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/PromptMembers">PromptMembers</a></span>}>
  このフックには、認証フローにおける現在のプロンプトに関するデータが含まれます。

  ```jsx Example theme={null}
  import { usePrompt } from '@auth0/auth0-acul-react/confirmation';
  function FlowInfo() {
    const prompt = usePrompt();
  }
  ```
</ParamField>

<ParamField body="useScreen" type={<span>() =&gt; <a href="/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/ScreenMembers">ScreenMembers</a></span>}>
  このフックには、設定やコンテキストなど、`confirmation`画面固有の詳細が含まれます。

  ```jsx Example theme={null}
  import { useScreen } from '@auth0/auth0-acul-react/confirmation';
  function ScreenDebug() {
    const screen = useScreen();
  }
  ```
</ParamField>

<ParamField body="useTenant" type={<span>() =&gt; <a href="/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/TenantMembers">TenantMembers</a></span>}>
  このフックには、`id`や関連するメタデータなど、テナントに関するデータが含まれます。

  ```jsx Example theme={null}
  import { useTenant } from '@auth0/auth0-acul-react/confirmation';
  function TenantInfo() {
    const tenant = useTenant();
  }
  ```
</ParamField>

<ParamField body="useTransaction" type={<span>() =&gt; <a href="/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/TransactionMembers">TransactionMembers</a></span>}>
  このフックは、有効な識別子やフローの状態など、`confirmation`画面に固有のトランザクションデータを提供します。

  ```jsx Example theme={null}
  import { useTransaction } from '@auth0/auth0-acul-react/confirmation';
  function TransactionInfo() {
    const transaction = useTransaction();
  }
  ```
</ParamField>

<ParamField body="useUntrustedData" type={<span>() =&gt; <a href="/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/UntrustedDataMembers">UntrustedDataMembers</a></span>}>
  このフックは、URLパラメーターで事前入力されたフィールドなど、画面に渡される信頼されていないデータを処理します。

  ```jsx Example theme={null}
  import { useUntrustedData } from '@auth0/auth0-acul-react/confirmation';
  function PrefilledForm() {
    const untrustedData = useUntrustedData();
  }
  ```
</ParamField>

<ParamField body="useUser" type={<span>() =&gt; <a href="/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/UserMembers">UserMembers</a></span>}>
  このフックは、`username`、`email`、利用可能な認証方法など、現在のユーザーの詳細を提供します。

  ```jsx Example theme={null}
  import { useUser } from '@auth0/auth0-acul-react/confirmation';
  function UserProfile() {
    const user = useUser();
  }
  ```
</ParamField>

<ParamField body="useConfirmation" type={<a href="/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/ConfirmationMembers">ConfirmationMembers</a>}>
  このフックは、`confirmation` 画面で使用できるすべてのメソッドとコンテキストを返します。
</ParamField>

<div id="methods">
  ## メソッド
</div>

<ParamField body="proceedToSignup" type="Promise<void>">
  このメソッドは自動サインアップを確定し、OTPの検証後にアカウント作成に進みます。

  ```jsx Example theme={null}
  import { useConfirmation } from '@auth0/auth0-acul-react/confirmation';

  function ConfirmButton() {
    const { proceedToSignup } = useConfirmation();
    return (
      <button onClick={() => proceedToSignup()}>
        アカウントを作成
      </button>
    );
  }
  ```
</ParamField>

<ParamField body="goBack" type="Promise<void>">
  このメソッドは自動サインアップをキャンセルし、アカウントを作成せずにユーザーをログイン画面に戻します。

  ```jsx Example theme={null}
  import { useConfirmation } from '@auth0/auth0-acul-react/confirmation';

  function CancelButton() {
    const { goBack } = useConfirmation();
    return (
      <button onClick={() => goBack()}>
        戻る
      </button>
    );
  }
  ```
</ParamField>

<div id="commonutility-hooks">
  ## 共通ユーティリティフック
</div>

<ParamField body={<a href="/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Hooks/useAuth0Themes">useAuth0Themes</a>} type="Hooks">
  このフックは、ブランディングコンテキストの設定をフラット化した現在のテーマオプションを取得します。
</ParamField>

<ParamField body={<a href="/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Hooks/useChangeLanguage">useChangeLanguage</a>} type="Hooks">
  このフックは、現在の ACUL 画面の表示言語を変更する関数を返します。
</ParamField>

<ParamField body={<a href="/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Hooks/useCurrentScreen">useCurrentScreen</a>} type="Hooks">
  このフックは、現在の画面のコンテキストと状態を取得します。
</ParamField>

<ParamField body={<a href="/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Hooks/useErrors">useErrors</a>} type="Hooks">
  このフックは、画面上のサーバーエラー、クライアントエラー、開発者エラーを読み取り、管理します。
</ParamField>
