Documentation Index Fetch the complete documentation index at: https://auth0.generaltranslation.app/llms.txt
Use this file to discover all available pages before exploring further.
mfa-email-challenge 画面の機能を実装するクラスです
この画面は、MFA(多要素認証)の途中でユーザーがメールアドレスを確認する必要がある場合に表示されます
import MfaEmailChallenge from '@auth0/auth0-acul-js/mfa-email-challenge' ;
const mfaEmailChallenge = new MfaEmailChallenge ();
await mfaEmailChallenge . continue ({
code: '123456' ,
rememberDevice: true
});
MfaEmailChallenge 画面マネージャーのインスタンスを作成します
指定されたコードを使用してメールチャレンジを続行します。 import MfaEmailChallenge from '@auth0/auth0-acul-js/mfa-email-challenge' ;
const mfaEmailChallenge = new MfaEmailChallenge ();
await mfaEmailChallenge . continue ({
code: '123456' ,
rememberDevice: true
});
コンテキストからトランザクションエラーの配列を取得し、存在しない場合は空の配列を返します。 トランザクションコンテキストから取得されるエラーオブジェクトの配列です。
利用可能な場合、別のメール設定を選択するアクションを送信します。 import MfaEmailChallenge from '@auth0/auth0-acul-js/mfa-email-challenge' ;
const mfaEmailChallenge = new MfaEmailChallenge ();
await mfaEmailChallenge . pickEmail ();
メールコードを再送信します。 import MfaEmailChallenge from '@auth0/auth0-acul-js/mfa-email-challenge' ;
const mfaEmailChallenge = new MfaEmailChallenge ();
await mfaEmailChallenge . resendCode ();
Utility Featureこの画面用の、タイムアウト管理付きの再送機能を取得します。 startResend メソッドを持つ ResendControl オブジェクトです。 import MfaEmailChallenge from '@auth0/auth0-acul-js/mfa-email-challenge' ;
const mfaEmailChallenge = new MfaEmailChallenge ();
const { startResend } = mfaEmailChallenge . resendManager ({
timeoutSeconds: 15 ,
onStatusChange : ( remainingSeconds , isDisabled ) => {
console . log ( `Resend available in ${ remainingSeconds } s, disabled: ${ isDisabled } ` );
},
onTimeout : () => {
console . log ( 'Resend is now available' );
}
});
// Call startResend when user clicks resend button
startResend ();
再送機能を設定するためのオプションです。 プロパティ
ユーザーが別の MFA(多要素認証)方法を試せるようにします。 import MfaEmailChallenge from '@auth0/auth0-acul-js/mfa-email-challenge' ;
const mfaEmailChallenge = new MfaEmailChallenge ();
await mfaEmailChallenge . tryAnotherMethod ();