メインコンテンツへスキップ
このクラスは、reset-password-mfa-sms-challenge 画面を扱うためのメソッドを提供します。
Example
import ResetPasswordMfaSmsChallenge from '@auth0/auth0-acul-js/reset-password-mfa-sms-challenge';

const resetPasswordMfaSmsChallenge = new ResetPasswordMfaSmsChallenge();
await resetPasswordMfaSmsChallenge.continueMfaSmsChallenge({
  code: '123456',
});

コンストラクター

ResetPasswordMfaSmsChallenge
Constructor

プロパティ

branding
client
organization
prompt
screen
tenant
transaction
untrustedData
user
screenIdentifier
string

メソッド

continueMfaSmsChallenge
Promise<void>
指定されたコードを使用して MFA SMS チャレンジを送信します。
Example
import ResetPasswordMfaSmsChallenge from '@auth0/auth0-acul-js/reset-password-mfa-sms-challenge';

const resetPasswordMfaSmsChallenge = new ResetPasswordMfaSmsChallenge();
await resetPasswordMfaSmsChallenge.continueMfaSmsChallenge({
  code: '123456',
});
getACall
Promise<void>
音声通話による検証に切り替えるアクションを送信します。
Example
import ResetPasswordMfaSmsChallenge from '@auth0/auth0-acul-js/reset-password-mfa-sms-challenge';

const resetPasswordMfaSmsChallenge = new ResetPasswordMfaSmsChallenge();
await resetPasswordMfaSmsChallenge.getACall();
getErrors
コンテキストからトランザクションエラーの配列を取得します。存在しない場合は空の配列を返します。トランザクションコンテキストから取得されるエラーオブジェクトの配列です。
resendCode
Promise<void>
SMS コードを再送信するアクションを送信します。
Example
import ResetPasswordMfaSmsChallenge from '@auth0/auth0-acul-js/reset-password-mfa-sms-challenge';

const resetPasswordMfaSmsChallenge = new ResetPasswordMfaSmsChallenge();
await resetPasswordMfaSmsChallenge.resendCode();
resendManager
Utility Featureこの画面用の、タイムアウト管理付きの再送機能を取得します。startResend メソッドを持つ ResendControl オブジェクトです。
Example
import ResetPasswordMfaSmsChallenge from '@auth0/auth0-acul-js/reset-password-mfa-sms-challenge';

const resetPasswordMfaSmsChallenge = new ResetPasswordMfaSmsChallenge();
const { startResend } = resetPasswordMfaSmsChallenge.resendManager({
  timeoutSeconds: 15,
  onStatusChange: (remainingSeconds, isDisabled) => {
    console.log(`Resend available in ${remainingSeconds}s, disabled: ${isDisabled}`);
  },
  onTimeout: () => {
    console.log('Resend is now available');
  }
});

// ユーザーが再送ボタンをクリックしたときに startResend を呼び出します
startResend();
tryAnotherMethod
Promise<void>
別の MFA(多要素認証)手段を試すアクションを送信します。
Example
import ResetPasswordMfaSmsChallenge from '@auth0/auth0-acul-js/reset-password-mfa-sms-challenge';

const resetPasswordMfaSmsChallenge = new ResetPasswordMfaSmsChallenge();
await resetPasswordMfaSmsChallenge.tryAnotherMethod();