mfa-otp-challenge 画面の機能を実装するクラスです
この画面は、ユーザーが MFA(多要素認証)の際に OTP コードを入力する必要があるときに表示されます
import MfaOtpChallenge from '@auth0/auth0-acul-js/mfa-otp-challenge' ;
const mfaOtpChallenge = new MfaOtpChallenge ();
await mfaOtpChallenge . continue ({
code: '123456' ,
rememberDevice: true
});
MfaOtpChallenge 画面マネージャーのインスタンスを生成します
指定されたコードを使用して OTP チャレンジを続行します。 import MfaOtpChallenge from '@auth0/auth0-acul-js/mfa-otp-challenge' ;
const mfaOtpChallenge = new MfaOtpChallenge ();
await mfaOtpChallenge . continue ({
code: '123456' ,
rememberDevice: true
});
コンテキストからトランザクションのエラー配列を取得します。存在しない場合は空配列を返します。 トランザクションコンテキストから取得したエラーオブジェクトの配列です。
ユーザーが別の MFA(多要素認証)手段を試せるようにします。 import MfaOtpChallenge from '@auth0/auth0-acul-js/mfa-otp-challenge' ;
const mfaOtpChallenge = new MfaOtpChallenge ();
await mfaOtpChallenge . tryAnotherMethod ();