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

# ResetPasswordMfaPushChallengePush

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

`reset-password-mfa-push-challenge-push` 画面は、プッシュ通知による多要素認証が必要な場合に、パスワードリセットフロー中に表示されます。リセットを続行するには、登録済みのモバイル端末でリクエストを承認するようユーザーに求めます。

![ACUL Reset Password MFA Push Challenge Push](https://mintlify.s3.us-west-1.amazonaws.com/docs-dev/images/cdy7uua7fh8z/5ANIhgOJURo2z0YXmWKp7M/5f266f0a935c047d6159874cbfc2001a/Screenshot_2025-03-26_at_09.15.46.png)

## インポート

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

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

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

// 部分インポート
import {
  useResetPasswordMfaPushChallengePush,
  // コンテキストフック
  useUser,
  useTenant,
  useBranding,
  useClient,
  useOrganization,
  usePrompt,
  useScreen,
  useTransaction,
  useUntrustedData,
  useExperiment,
  // 共通フック
  useCurrentScreen,
  useAuth0Themes,
  useErrors,
  useMfaPolling,
  // ユーティリティフック
  useChangeLanguage,
  // メソッド
  continueMethod,
  enterCodeManually,
  resendPushNotification,
  tryAnotherMethod,
} from '@auth0/auth0-acul-react/reset-password-mfa-push-challenge-push';

function ResetPasswordMfaPushChallengePushScreen() {
  const { resendPushNotification } = useResetPasswordMfaPushChallengePush();
  return (
    <button onClick={() => resendPushNotification()}>
      Resend Push Notification
    </button>
  );
}
```

## Context Hooks

`reset-password-mfa-push-challenge-push` 画面で Auth0 のコンテキストデータへの読み取り専用アクセスを提供する画面スコープのフックです。`@auth0/auth0-acul-react/reset-password-mfa-push-challenge-push` からインポートします。

**useBranding** `() => [BrandingMembers](/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/BrandingMembers)`

このフックは、`reset-password-mfa-push-challenge-push` 画面に表示されるロゴ、色、テーマ設定などのブランディング設定を提供します。

```jsx Example theme={null}
import { useBranding } from '@auth0/auth0-acul-react/reset-password-mfa-push-challenge-push';
function CustomTheme() {
  const branding = useBranding();
}
```

**useClient** `() => [ClientMembers](/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/ClientMembers)`

このフックは、`reset-password-mfa-push-challenge-push` 画面の `id`、`name`、`logoUrl` など、クライアント関連の設定を提供します。

```jsx Example theme={null}
import { useClient } from '@auth0/auth0-acul-react/reset-password-mfa-push-challenge-push';
function AppInfo() {
  const client = useClient();
}
```

**useExperiment** `() => [ExperimentMembers](/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/ExperimentMembers)`

このフックは、`reset-password-mfa-push-challenge-push` 画面でアクティブな [Experiment Center](/docs/docs/ja-jp/customize/experiment-center) の experiment を提供します。アクティブな experiment がない場合 (または画面が `context_configuration` でオプトインしていない場合) は `null` を返します。

```jsx Example theme={null}
import { useExperiment } from '@auth0/auth0-acul-react/reset-password-mfa-push-challenge-push';
function ExperimentBranch() {
  const experiment = useExperiment();
  if (!experiment) return null;
  return experiment.isControl ? <ControlUI /> : <TreatmentUI />;
}
```

**useOrganization** `() => [OrganizationMembers](/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/OrganizationMembers)`

このフックは、パスワードリセットが組織にスコープされている場合に、ユーザーの組織に関する情報を提供します。組織コンテキストが存在しない場合は `null` を返します。

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

**usePrompt** `() => [PromptMembers](/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/PromptMembers)`

このフックには、認証フロー内の現在のプロンプトに関するデータが含まれます。

```jsx Example theme={null}
import { usePrompt } from '@auth0/auth0-acul-react/reset-password-mfa-push-challenge-push';
function FlowInfo() {
  const prompt = usePrompt();
}
```

**useScreen** `() => [ScreenMembersOnResetPasswordMfaPushChallengePush](/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/ScreenMembersOnResetPasswordMfaPushChallengePush)`

このフックには、設定やコンテキストを含む、`reset-password-mfa-push-challenge-push` 画面固有の詳細が含まれます。

```jsx Example theme={null}
import { useScreen } from '@auth0/auth0-acul-react/reset-password-mfa-push-challenge-push';
function ScreenDebug() {
  const screen = useScreen();
}
```

**useTenant** `() => [TenantMembers](/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/TenantMembers)`

このフックには、`id` や関連するメタデータなど、tenant に関連するデータが含まれます。

```jsx Example theme={null}
import { useTenant } from '@auth0/auth0-acul-react/reset-password-mfa-push-challenge-push';
function TenantInfo() {
  const tenant = useTenant();
}
```

**useTransaction** `() => [TransactionMembers](/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/TransactionMembers)`

このフックは、アクティブな接続や現在のフローの状態など、`reset-password-mfa-push-challenge-push`画面の取引固有のデータを提供します。

```jsx Example theme={null}
import { useTransaction } from '@auth0/auth0-acul-react/reset-password-mfa-push-challenge-push';
function TransactionInfo() {
  const transaction = useTransaction();
}
```

**useUntrustedData** `() => [UntrustedDataMembers](/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/UntrustedDataMembers)`

このフックは、URLパラメーターで渡された事前入力済みのメールアドレスや`username`など、画面に渡される信頼できないデータを扱います。

```jsx Example theme={null}
import { useUntrustedData } from '@auth0/auth0-acul-react/reset-password-mfa-push-challenge-push';
function PrefilledForm() {
  const untrustedData = useUntrustedData();
}
```

**useUser** `() => [UserMembers](/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/UserMembers)`

このフックは、`username`、`email`、利用可能な認証方法など、現在のユーザーの詳細情報を提供します。

```jsx Example theme={null}
import { useUser } from '@auth0/auth0-acul-react/reset-password-mfa-push-challenge-push';
function UserProfile() {
  const user = useUser();
}
```

**useResetPasswordMfaPushChallengePush** `[ResetPasswordMfaPushChallengePushMembers](/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Types/interfaces/ResetPasswordMfaPushChallengePushMembers)`

このフックは、`reset-password-mfa-push-challenge-push`画面で利用できるすべてのメソッドとコンテキストを返します。

## メソッド

**continueMethod** `Promise\<void\>`

このメソッドは、ユーザーがモバイル端末でプッシュ通知を承認した後、パスワードリセットフローを続行します。

```jsx Example theme={null}
import { useResetPasswordMfaPushChallengePush } from '@auth0/auth0-acul-react/reset-password-mfa-push-challenge-push';

function ContinueButton() {
  const { continueMethod } = useResetPasswordMfaPushChallengePush();
  return (
    <button onClick={() => continueMethod()}>
      Continue
    </button>
  );
}
```

**enterCodeManually** `Promise\<void\>`

このメソッドは、プッシュ通知の承認を待つ代わりに、ユーザーをOTPコードの手動入力画面に遷移させます。

```jsx Example theme={null}
import { useResetPasswordMfaPushChallengePush } from '@auth0/auth0-acul-react/reset-password-mfa-push-challenge-push';

function EnterCodeButton() {
  const { enterCodeManually } = useResetPasswordMfaPushChallengePush();
  return (
    <button onClick={() => enterCodeManually()}>
      Enter Code Manually
    </button>
  );
}
```

**resendPushNotification** `Promise\<void\>`

ユーザーの登録済みのモバイル端末にプッシュ通知を再送します。

このメソッドは、新しいプッシュ通知の送信をAuth0に要求するフォームを送信します。Auth0がこのスクリーンを再度レンダリングするため、ブラウザーでページが再読み込みされ、Reactの状態、エフェクト、タイマー、および実行中のポーリングはすべて失われます。

`resendPushNotification()`を呼び出す際は、次の点に注意してください。

* `await resendPushNotification()`の後に実行されるコードでは、そのコード内で設定した状態 (「通知を送信しました」というメッセージなど) を前提にできません。
* サーバー側のエラーは、ページの再読み込み後に`useErrors()`で取得できます。これらのエラーによって、返されたPromiseがrejectされることはありません。
* 返されたPromiseは、フォームが送信された時点 (ページの再読み込み前) でresolveされます。このPromiseは、Auth0が新しい通知を送信したことを保証するものではありません。

```jsx Example theme={null}
import { useResetPasswordMfaPushChallengePush } from '@auth0/auth0-acul-react/reset-password-mfa-push-challenge-push';

function ResendButton() {
  const { resendPushNotification } = useResetPasswordMfaPushChallengePush();
  return (
    <button onClick={() => resendPushNotification()}>
      Resend Push Notification
    </button>
  );
}
```

**tryAnotherMethod** `Promise\<void\>`

このメソッドは、ユーザーを別のMFA方式を選択する画面に遷移させます。

```jsx Example theme={null}
import { useResetPasswordMfaPushChallengePush } from '@auth0/auth0-acul-react/reset-password-mfa-push-challenge-push';

function TryAnotherMethodButton() {
  const { tryAnotherMethod } = useResetPasswordMfaPushChallengePush();
  return (
    <button onClick={() => tryAnotherMethod()}>
      Try Another Method
    </button>
  );
}
```

## 共通/ユーティリティ Hooks

**[useMfaPolling](/docs/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Hooks/useMfaPolling)** `Hooks`

このフックは MFA のプッシュ通知の polling を管理し、ユーザーがrequestを承認または拒否するまで、プッシュチャレンジ endpoint を繰り返し確認します。

**[useAuth0Themes](/docs/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Hooks/useAuth0Themes)** `Hooks`

このフックは、ブランディングコンテキストからフラット化された設定を含む現在のテーマオプションを取得します。

**[useChangeLanguage](/docs/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Hooks/useChangeLanguage)** `Hooks`

このフックは、現在の ACUL 画面の表示言語を変更するための関数を返します。

**[useCurrentScreen](/docs/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Hooks/useCurrentScreen)** `Hooks`

このフックは、現在の画面のコンテキストと state を取得します。

**[useErrors](/docs/docs/ja-jp/libraries/acul/react-sdk/API-Reference/Hooks/useErrors)** `Hooks`

このフックは、画面上のサーバー、クライアント、開発者のエラーを読み取り、管理します。
