メインコンテンツへスキップ
MfaRecoveryCodeChallenge クラスは、mfa-recovery-code-challenge 画面の機能を実装します。この画面は、ユーザーがログインするためにリカバリーコードを入力する必要がある場合に表示されます。
ACUL MFA リカバリーコードチャレンジ

コンストラクター

MFA リカバリーコードチャレンジ画面マネージャーのインスタンスを作成します:
Example
import MfaRecoveryCodeChallenge from '@auth0/auth0-acul-js/mfa-recovery-code-challenge';

const mfaRecoveryCodeChallenge = new MfaRecoveryCodeChallenge();
await mfaRecoveryCodeChallenge.continue({ code: 'YOUR_RECOVERY_CODE' });

プロパティ

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

メソッド

changeLanguage
Promise<void>
このメソッドは、Universal Login ページの表示言語を変更します。
Example
import MfaRecoveryCodeChallenge from '@auth0/auth0-acul-js/mfa-recovery-code-challenge';

const mfaRecoveryCodeChallenge = new MfaRecoveryCodeChallenge();
mfaRecoveryCodeChallenge.changeLanguage({
  language: 'fr',
});
メソッドパラメーター
continue
Promise<void>
このメソッドは、指定されたリカバリーコードを使用して続行します。
Example
import MfaRecoveryCodeChallenge from '@auth0/auth0-acul-js/mfa-recovery-code-challenge';

const mfaRecoveryCodeChallenge = new MfaRecoveryCodeChallenge();
await mfaRecoveryCodeChallenge.continue({ code: 'YOUR_RECOVERY_CODE' });
メソッドパラメーター
getErrors
このメソッドは、コンテキストからトランザクションエラーの配列を取得します。エラーが存在しない場合は空の配列を返します。
tryAnotherMethod
Promise<void>
このメソッドは、ユーザーが別の MFA 認証方法を選択できる画面に移動します。
Example
import MfaRecoveryCodeChallenge from '@auth0/auth0-acul-js/mfa-recovery-code-challenge';

const mfaRecoveryCodeChallenge = new MfaRecoveryCodeChallenge();
await mfaRecoveryCodeChallenge.tryAnotherMethod();