メインコンテンツへスキップ
ResetPasswordMfaOtpChallenge クラスは、reset-password-mfa-otp-challenge 画面の機能を実装します。この画面では、パスワードリセット フロー中の MFA ステップの一環として、認証アプリのワンタイムパスワード (OTP) を入力するようユーザーに求めます。

コンストラクター

ResetPasswordMfaOtpChallenge 画面マネージャーのインスタンスを作成します。
Example
import ResetPasswordMfaOtpChallenge from '@auth0/auth0-acul-js/reset-password-mfa-otp-challenge';
const resetPasswordMfaOtpChallengeManager = new ResetPasswordMfaOtpChallenge();
await resetPasswordMfaOtpChallengeManager.continue({
  code: '123456',
});

プロパティ

ブランディングテーマや各種設定など、ブランディングに関する構成を提供します。
reset-password-mfa-otp-challenge 画面の idnamelogoUrl など、クライアントに関連する構成を提供します。
idname など、ユーザーの組織に関する情報を提供します。
認証フローにおける現在のプロンプトに関するデータを含みます。
設定やコンテキストなど、reset-password-mfa-otp-challenge 画面に固有の詳細を含みます。
id や関連するメタデータなど、テナントに関するデータを含みます。
アクティブな識別子やフローの状態など、reset-password-mfa-otp-challenge 画面に固有のトランザクションデータを提供します。
MFA チャレンジフロー中のユーザー入力など、SDK に渡される信頼できないデータを扱います。
usernameemailroles など、現在のユーザーの詳細です。

メソッド

changeLanguage
Promise<void>
このメソッドは、Universal Login ページの表示言語を変更します。
Example
import ResetPasswordMfaOtpChallenge from '@auth0/auth0-acul-js/reset-password-mfa-otp-challenge';
const resetPasswordMfaOtpChallengeManager = new ResetPasswordMfaOtpChallenge();
resetPasswordMfaOtpChallengeManager.changeLanguage({
  language: 'fr',
});
メソッドパラメーター
continue
Promise<void>
このメソッドは、パスワードリセットフロー中のMFAチャレンジを続行するために、OTP コードを送信します。
Example
import ResetPasswordMfaOtpChallenge from '@auth0/auth0-acul-js/reset-password-mfa-otp-challenge';
const resetPasswordMfaOtpChallengeManager = new ResetPasswordMfaOtpChallenge();
await resetPasswordMfaOtpChallengeManager.continue({
  code: '123456',
});
メソッドパラメーター
getErrors
このメソッドは、コンテキストからトランザクションエラーの配列を取得します。存在しない場合は空の配列を返します。
tryAnotherMethod
Promise<void>
このメソッドを使用すると、ユーザーはチャレンジを完了するための別の MFA方式 を選択できます。
Example
import ResetPasswordMfaOtpChallenge from '@auth0/auth0-acul-js/reset-password-mfa-otp-challenge';
const resetPasswordMfaOtpChallengeManager = new ResetPasswordMfaOtpChallenge();
await resetPasswordMfaOtpChallengeManager.tryAnotherMethod();