メインコンテンツへスキップ
mfa-otp-challenge 画面の機能を実装するクラスです この画面は、ユーザーが MFA(多要素認証)の際に OTP コードを入力する必要があるときに表示されます
Example
import MfaOtpChallenge from '@auth0/auth0-acul-js/mfa-otp-challenge';

const mfaOtpChallenge = new MfaOtpChallenge();
await mfaOtpChallenge.continue({
  code: '123456',
  rememberDevice: true
});

コンストラクター

MfaOtpChallenge
Constructor
MfaOtpChallenge 画面マネージャーのインスタンスを生成します

プロパティ

branding
client
organization
prompt
screen
tenant
transaction
untrustedData
user
screenIdentifier
string

メソッド

continue
Promise<void>
指定されたコードを使用して OTP チャレンジを続行します。
Example
import MfaOtpChallenge from '@auth0/auth0-acul-js/mfa-otp-challenge';

const mfaOtpChallenge = new MfaOtpChallenge();
await mfaOtpChallenge.continue({
  code: '123456',
  rememberDevice: true
});
getErrors
コンテキストからトランザクションのエラー配列を取得します。存在しない場合は空配列を返します。トランザクションコンテキストから取得したエラーオブジェクトの配列です。
tryAnotherMethod
Promise<void>
ユーザーが別の MFA(多要素認証)手段を試せるようにします。
Example
import MfaOtpChallenge from '@auth0/auth0-acul-js/mfa-otp-challenge';

const mfaOtpChallenge = new MfaOtpChallenge();
await mfaOtpChallenge.tryAnotherMethod();