メインコンテンツへスキップ
ResetPasswordMfaPhoneChallenge クラスは、reset-password-mfa-phone-challenge 画面の機能を実装します。この画面では、パスワードリセット フロー中の MFA ステップの一環として、ユーザーは SMS または音声通話で確認コードをリクエストできます。

コンストラクター

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

プロパティ

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

メソッド

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