メインコンテンツへスキップ
MFA(多要素認証)の SMS 登録画面を表します。
Example
import MfaSmsEnrollment from '@auth0/auth0-acul-js/mfa-sms-enrollment';

const mfaSmsEnrollment = new MfaSmsEnrollment();
await mfaSmsEnrollment.pickCountryCode();

コンストラクター

MfaSmsEnrollment
Constructor
MfaSmsEnrollment クラスの新しいインスタンスを初期化します。

プロパティ

branding
client
organization
prompt
screen
tenant
transaction
untrustedData
user
screenIdentifier
string

メソッド

continueEnrollment
Promise<void>
指定された電話番号で SMS 登録プロセスを続行します。登録プロセスが完了すると解決される Promise です。

スローされる例外

電話番号が指定されていない場合。
Example
import MfaSmsEnrollment from '@auth0/auth0-acul-js/mfa-sms-enrollment';

const mfaSmsEnrollment = new MfaSmsEnrollment();
await mfaSmsEnrollment.continueEnrollment({ phone: '1234567890' });
getErrors
コンテキストからトランザクションのエラー配列を取得し、存在しない場合は空配列を返します。トランザクションコンテキストからの Error オブジェクトの配列です。
pickCountryCode
Promise<void>
SMS 登録用に国コードを選択するアクションを処理します。アクションが完了すると解決される Promise です。
Example
import MfaSmsEnrollment from '@auth0/auth0-acul-js/mfa-sms-enrollment';

const mfaSmsEnrollment = new MfaSmsEnrollment();
await mfaSmsEnrollment.pickCountryCode();
tryAnotherMethod
Promise<void>
MFA(多要素認証)で別の方法を試すためのアクションを処理します。アクションが完了すると解決される Promise です。
Example
import MfaSmsEnrollment from '@auth0/auth0-acul-js/mfa-sms-enrollment';

const mfaSmsEnrollment = new MfaSmsEnrollment();
await mfaSmsEnrollment.tryAnotherMethod();