メインコンテンツへスキップ
ResetPasswordMfaRecoveryCodeChallenge クラスは、reset-password-mfa-recovery-code-challenge 画面の機能を実装します。この画面では、パスワードリセットフロー中の MFA ステップの一環として、ユーザーにリカバリーコードの入力を求めます。

コンストラクター

ResetPasswordMfaRecoveryCodeChallenge 画面マネージャーのインスタンスを生成します。
Example
import ResetPasswordMfaRecoveryCodeChallenge from '@auth0/auth0-acul-js/reset-password-mfa-recovery-code-challenge';
const resetPasswordMfaRecoveryCodeChallengeManager = new ResetPasswordMfaRecoveryCodeChallenge();
await resetPasswordMfaRecoveryCodeChallengeManager.continue('RECOVERY_CODE');

プロパティ

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

メソッド

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