Documentation Index Fetch the complete documentation index at: https://auth0-dr-923.mintlify.app/llms.txt
Use this file to discover all available pages before exploring further.
MFA SMSチャレンジ画面クラス
MFA SMSチャレンジ画面クラスは、mfa-sms-challenge画面と関連付けられているメソッドを提供します。
MFA SMSチャレンジ画面クラスのインポートとインスタンス化
import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge' ;
const mfaSmsChallenge = new MfaSmsChallenge ();
// SDK Properties return a string, number or boolean
// ex. "login-id"
mfaSmsChallenge . screen . name ;
// SDK Methods return an object or array
await mfaSmsChallenge . continueMfaSmsChallenge ({
code: '123456' ,
rememberBrowser: true ,
});
プロパティ
MFA SMSチャレンジ画面クラスには以下のプロパティがあります。
branding
client
organization
prompt
screen
tenant
transaction
untrustedData
user
interface branding {
settings : null | BrandingSettings ;
themes : null | BrandingThemes ;
}
interface BrandingSettings {
colors ?: {
pageBackground ?: string | {
angleDeg : number ;
end : string ;
start : string ;
type : string ;
};
primary ?: string ;
};
faviconUrl ?: string ;
font ?: { url : string ;};
logoUrl ?: string ;
}
interface BrandingThemes {
default : {
borders : Record < string , string | number | boolean >;
colors : Record < string , string >;
displayName : string ;
fonts : Record < string , string | boolean | object >;
pageBackground : Record < string , string >;
widget : Record < string , string | number >;
};
}
See all 30 lines
interface client {
description : null | string ;
id : string ;
logoUrl : null | string ;
name : string ;
metadata : null | {[ key : string ] : string ;};
}
interface organization {
branding : null | {
colors ?: {
pageBackground ?: string ;
primary ?: string ;
};
logoUrl ?: string ;
};
displayName : null | string ;
id : null | string ;
metadata : null | {[ key : string ] : string ;};
name : null | string ;
usage : null | string ;
}
interface prompt {
name : string ;
}
interface screen {
captcha : null | CaptchaContext ;
captchaImage : null | string ;
captchaProvider : null | string ;
captchaSiteKey : null | string ;
data : null | {
phone_number ?: string ;
remember_device ?: boolean ;
};
isCaptchaAvailable : boolean ;
links : null | Record < string , string >;
name : string ;
texts : null | Record < string , string >;
}
interface CaptchaContext {
image ?: string ;
provider : string ;
siteKey ?: string ;
}
interface tenant {
enabledFactors : null | string [];
enabledLocales : null | string [];
friendlyName : null | string ;
name : null | string ;
}
interface transaction {
alternateConnections : null | ( Connection | EnterpriseConnection )[];
connectionStrategy : null | string ;
countryCode : null | string ;
countryPrefix : null | string ;
currentConnection : null | Connection ;
errors : null | Error [];
hasErrors : boolean ;
locale : string ;
state : string ;
}
interface Connection {
metadata ?: Record < string , string >;
name : string ;
strategy : string ;
}
interface EnterpriseConnection {
metadata ?: Record < string , string >;
name : string ;
options : {
displayName ?: string ;
iconUrl ?: string ;
showAsButton : boolean ;
};
strategy : string ;
}
See all 28 lines
interface untrustedData {
authorizationParams : null | {
login_hint ?: string ;
screen_hint ?: string ;
ui_locales ?: string ;
[ key : `ext- ${ string } ` ] : string ;
};
submittedFormData : null | {
[ key : string ] :
| string
| number
| boolean
| undefined ;
};
}
interface user {
appMetadata : null | {[ key : string ] : string ;};
email : null | string ;
enrolledDevices : null | ShortEntity < "device" >[];
enrolledEmails : null | ShortEntity < "email" >[];
enrolledFactors : null | string [];
enrolledPhoneNumbers : null | ShortEntity < "phoneNumber" >[];
id : null | string ;
organizations : null | {
branding : undefined | { logoUrl : undefined | string ;};
displayName : undefined | string ;
organizationId : undefined | string ;
organizationName : undefined | string ;
}[];
phoneNumber : null | string ;
picture : null | string ;
userMetadata : null | {[ key : string ] : string ;};
username : null | string ;
}
ShortEntity < Key > : {
id: number ;
} & Record < Key , string >
メソッド
MFA SMSチャレンジ画面クラスには以下のメソッドがあります。
continueMfaSmsChallenge( options ?)
このメソッドは入力された検証コードとrememberBrowserオプションを送信します。
import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge' ;
const mfaSmsChallenge = new MfaSmsChallenge ();
await mfaSmsChallenge . continueMfaSmsChallenge ({
code: '123456' ,
rememberBrowser: true ,
});
パラメーター タイプ 必須 説明 code文字列 必須 ユーザーが入力したコードです。 rememberBrowserブール値 任意 ユーザーのブラウザー構成を記憶します。 [key: string]文字列 | 数値 | ブール値 | undefined 任意 ユーザーから収集した任意 のデータです。
getACall( options ?)
このメソッドは検証コードを音声通話検証で送信できるようにします。
import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge' ;
const mfaSmsChallenge = new MfaSmsChallenge ();
await mfaSmsChallenge . getACall ();
パラメーター タイプ 必須 説明 [key: string]文字列 | 数字 | ブール値 | undefined 任意 ユーザーから収集した任意のデータです。
pickSms( options ?)
このメソッドはユーザーが利用可能な別のSMS構成を選択できるようにします。
import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge' ;
const mfaSmsChallenge = new MfaSmsChallenge ();
await mfaSmsChallenge . pickSms ();
パラメーター タイプ 必須 説明 [key: string]文字列 | 数字 | ブール値 | undefined 任意 ユーザーから収集した任意のデータです。
resendCode( options ?)
このメソッドはSMSコードを再度送信します。
import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge' ;
const mfaSmsChallenge = new MfaSmsChallenge ();
await mfaSmsChallenge . resendCode ();
パラメーター タイプ 必須 説明 [key: string]文字列 | 数字 | ブール値 | undefined 任意 ユーザーから収集した任意のデータです。
tryAnotherMethod( options ?)
このメソッドは別のMFA方法を試行するアクションを送信します。
import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge' ;
const mfaSmsChallenge = new MfaSmsChallenge ();
await mfaSmsChallenge . tryAnotherMethod ();
パラメーター タイプ 必須 説明 [key: string]文字列 | 数字 | ブール値 | undefined 任意 ユーザーから収集した任意のデータです。
MFA SMS登録画面クラス
MFA SMS登録画面クラスは、mfa-sms-challenge画面と関連付けられているメソッドを提供します。
MFA SMS登録画面クラスのインポートとインスタンス化
import MfaSmsEnrollment from '@auth0/auth0-acul-js/mfa-sms-enrollment' ;
const mfaSmsEnrollment = new MfaSmsEnrollment ();
// SDK Properties return a string, number or boolean
// ex. "login-id"
mfaSmsEnrollment . screen . name ;
// SDK Methods return an object or array
await mfaSmsEnrollment . pickCountryCode ();
プロパティ
MFA SMS登録画面クラスには以下のプロパティがあります。
branding
client
organization
prompt
screen
tenant
transaction
untrustedData
user
interface branding {
settings : null | BrandingSettings ;
themes : null | BrandingThemes ;
}
interface BrandingSettings {
colors ?: {
pageBackground ?: string | {
angleDeg : number ;
end : string ;
start : string ;
type : string ;
};
primary ?: string ;
};
faviconUrl ?: string ;
font ?: { url : string ;};
logoUrl ?: string ;
}
interface BrandingThemes {
default : {
borders : Record < string , string | number | boolean >;
colors : Record < string , string >;
displayName : string ;
fonts : Record < string , string | boolean | object >;
pageBackground : Record < string , string >;
widget : Record < string , string | number >;
};
}
See all 30 lines
interface client {
description : null | string ;
id : string ;
logoUrl : null | string ;
name : string ;
metadata : null | {[ key : string ] : string ;};
}
interface organization {
branding : null | {
colors ?: {
pageBackground ?: string ;
primary ?: string ;
};
logoUrl ?: string ;
};
displayName : null | string ;
id : null | string ;
metadata : null | {[ key : string ] : string ;};
name : null | string ;
usage : null | string ;
}
interface prompt {
name : string ;
}
interface screen {
captcha : null | CaptchaContext ;
captchaImage : null | string ;
captchaProvider : null | string ;
captchaSiteKey : null | string ;
data : null | { phone ?: string ;};
isCaptchaAvailable : boolean ;
links : null | Record < string , string >;
name : string ;
texts : null | Record < string , string >;
}
interface CaptchaContext {
image ?: string ;
provider : string ;
siteKey ?: string ;
}
interface tenant {
enabledFactors : null | string [];
enabledLocales : null | string [];
friendlyName : null | string ;
name : null | string ;
}
interface transaction {
alternateConnections : null | ( Connection | EnterpriseConnection )[];
connectionStrategy : null | string ;
countryCode : null | string ;
countryPrefix : null | string ;
currentConnection : null | Connection ;
errors : null | Error [];
hasErrors : boolean ;
locale : string ;
state : string ;
}
interface Connection {
metadata ?: Record < string , string >;
name : string ;
strategy : string ;
}
interface EnterpriseConnection {
metadata ?: Record < string , string >;
name : string ;
options : {
displayName ?: string ;
iconUrl ?: string ;
showAsButton : boolean ;
};
strategy : string ;
}
See all 28 lines
interface untrustedData {
authorizationParams : null | {
login_hint ?: string ;
screen_hint ?: string ;
ui_locales ?: string ;
[ key : `ext- ${ string } ` ] : string ;
};
submittedFormData : null | {
[ key : string ] :
| string
| number
| boolean
| undefined ;
};
}
interface user {
appMetadata : null | {[ key : string ] : string ;};
email : null | string ;
enrolledDevices : null | ShortEntity < "device" >[];
enrolledEmails : null | ShortEntity < "email" >[];
enrolledFactors : null | string [];
enrolledPhoneNumbers : null | ShortEntity < "phoneNumber" >[];
id : null | string ;
organizations : null | {
branding : undefined | { logoUrl : undefined | string ;};
displayName : undefined | string ;
organizationId : undefined | string ;
organizationName : undefined | string ;
}[];
phoneNumber : null | string ;
picture : null | string ;
userMetadata : null | {[ key : string ] : string ;};
username : null | string ;
}
ShortEntity < Key > : {
id: number ;
} & Record < Key , string >
メソッド
MFA SMS登録画面クラスには以下のメソッドがあります。
continueEnrollment( options ?)
このメソッドは提供された電話番号でSMS登録の処理を続行します。
import MfaSmsEnrollment from '@auth0/auth0-acul-js/mfa-sms-enrollment' ;
const mfaSmsEnrollment = new MfaSmsEnrollment ();
await mfaSmsEnrollment . continueEnrollment ({ phone: '1234567890' });
パラメーター タイプ 必須 説明 captcha文字列 条件付き CAPTCHAプロバイダーが返すCAPTCHAコードまたは応答です。 phone文字列 任意 ユーザーが入力した電話番号です。 [key: string]文字列 | 数値 | ブール値 | undefined 任意 ユーザーから収集した任意のデータです。
pickCountryCode( options ?)
このメソッドはSMS登録に国コードを選択するアクションを処理します。
import MfaSmsEnrollment from '@auth0/auth0-acul-js/mfa-sms-enrollment' ;
const mfaSmsEnrollment = new MfaSmsEnrollment ();
await mfaSmsEnrollment . pickCountryCode ();
パラメーター タイプ 必須 説明 [key: string]文字列 | 数字 | ブール値 | undefined 任意 ユーザーから収集した任意のデータです。
tryAnotherMethod( options ?)
このメソッドはMFAに別の方法を試行するアクションを処理します。
import MfaSmsEnrollment from '@auth0/auth0-acul-js/mfa-sms-enrollment' ;
const mfaSmsEnrollment = new MfaSmsEnrollment ();
await mfaSmsEnrollment . tryAnotherMethod ();
パラメーター タイプ 必須 説明 [key: string]文字列 | 数字 | ブール値 | undefined 任意 ユーザーから収集した任意のデータです。
MFA SMSリスト画面クラス
MFA SMSリスト画面クラスは、mfa-sms-list画面と関連付けられているメソッドを提供します。
MFA SMSリスト画面クラスのインポートとインスタンス化
import MfaSmsList from '@auth0/auth0-acul-js/mfa-sms-list' ;
const mfaSmsList = new MfaSmsList ();
// SDK Properties return a string, number or boolean
// ex. "login-id"
mfaSmsList . screen . name ;
// SDK Methods return an object or array
// ex. { signup: "/signup_url", reset_password: "/reset_password_url"}
await mfaSmsList . backAction ();
プロパティ
MFA SMSリスト画面クラスには以下のプロパティがあります。
branding
client
organization
prompt
screen
tenant
transaction
untrustedData
user
interface branding {
settings : null | BrandingSettings ;
themes : null | BrandingThemes ;
}
interface BrandingSettings {
colors ?: {
pageBackground ?: string | {
angleDeg : number ;
end : string ;
start : string ;
type : string ;
};
primary ?: string ;
};
faviconUrl ?: string ;
font ?: { url : string ;};
logoUrl ?: string ;
}
interface BrandingThemes {
default : {
borders : Record < string , string | number | boolean >;
colors : Record < string , string >;
displayName : string ;
fonts : Record < string , string | boolean | object >;
pageBackground : Record < string , string >;
widget : Record < string , string | number >;
};
}
See all 30 lines
interface client {
description : null | string ;
id : string ;
logoUrl : null | string ;
name : string ;
metadata : null | {[ key : string ] : string ;};
}
interface organization {
branding : null | {
colors ?: {
pageBackground ?: string ;
primary ?: string ;
};
logoUrl ?: string ;
};
displayName : null | string ;
id : null | string ;
metadata : null | {[ key : string ] : string ;};
name : null | string ;
usage : null | string ;
}
interface prompt {
name : string ;
}
interface screen {
captcha : null | CaptchaContext ;
captchaImage : null | string ;
captchaProvider : null | string ;
captchaSiteKey : null | string ;
data : null | Record < string ,
| string
| boolean
| PasskeyCreate
| string []
| PhonePrefix []>
| Record < string , string []>>;
isCaptchaAvailable : boolean ;
links : null | Record < string , string >;
name : string ;
texts : null | Record < string , string >;
}
interface CaptchaContext {
image ?: string ;
provider : string ;
siteKey ?: string ;
}
interface PhonePrefix {
country : string ;
country_code : string ;
phone_prefix : string ;
}
interface PasskeyCreate {
public_key : {
authenticatorSelection : {
residentKey : string ;
userVerification : string ;
};
challenge : string ;
pubKeyCredParams : [{ alg : number ; type : string }];
rp : { id : string ; name : string };
user : { displayName : string ; id : string ; name : string };
};
}
See all 42 lines
interface tenant {
enabledFactors : null | string [];
enabledLocales : null | string [];
friendlyName : null | string ;
name : null | string ;
}
interface transaction {
alternateConnections : null | ( Connection | EnterpriseConnection )[];
connectionStrategy : null | string ;
countryCode : null | string ;
countryPrefix : null | string ;
currentConnection : null | Connection ;
errors : null | Error [];
hasErrors : boolean ;
locale : string ;
state : string ;
}
interface Connection {
metadata ?: Record < string , string >;
name : string ;
strategy : string ;
}
interface EnterpriseConnection {
metadata ?: Record < string , string >;
name : string ;
options : {
displayName ?: string ;
iconUrl ?: string ;
showAsButton : boolean ;
};
strategy : string ;
}
See all 28 lines
interface untrustedData {
authorizationParams : null | {
login_hint ?: string ;
screen_hint ?: string ;
ui_locales ?: string ;
[ key : `ext- ${ string } ` ] : string ;
};
submittedFormData : null | {
[ key : string ] :
| string
| number
| boolean
| undefined ;
};
}
interface user {
appMetadata : null | {[ key : string ] : string ;};
email : null | string ;
enrolledDevices : null | ShortEntity < "device" >[];
enrolledEmails : null | ShortEntity < "email" >[];
enrolledFactors : null | string [];
enrolledPhoneNumbers : null | ShortEntity < "phoneNumber" >[];
id : null | string ;
organizations : null | {
branding : undefined | { logoUrl : undefined | string ;};
displayName : undefined | string ;
organizationId : undefined | string ;
organizationName : undefined | string ;
}[];
phoneNumber : null | string ;
picture : null | string ;
userMetadata : null | {[ key : string ] : string ;};
username : null | string ;
}
ShortEntity < Key > : {
id: number ;
} & Record < Key , string >
メソッド
MFA SMSリスト画面クラスには以下のメソッドがあります。
backAction( options ?)
このメソッドはユーザーが前の画面に戻れるようにします。
import MfaSmsList from '@auth0/auth0-acul-js/mfa-sms-list' ;
const mfaSmsList = new MfaSmsList ();
await mfaSmsList . backAction ();
パラメーター タイプ 必須 説明 [key: string]文字列 | 数字 | ブール値 | undefined 任意 ユーザーから収集した任意のデータです。
selectPhoneNumber( options ?)
このメソッドは、ユーザーが登録済みの電話番号のリストから電話番号を選択できるようにします。
import MfaSmsList from '@auth0/auth0-acul-js/mfa-sms-list' ;
const mfaSmsList = new MfaSmsList ();
await mfaSmsList . selectPhoneNumber ({
index: 0 // for demonstration we are selecting the first index
});
パラメーター タイプ 必須 説明 index数値 必須 選択する電話番号のインデックスです。 [key: string]文字列 | 数値 | ブール値 | undefined 任意 ユーザーから収集した任意のデータです。
MFA国コード画面クラス
MFA国コード画面クラスは、ユーザーがMFAの電話番号検証に国コードを選択できるようにします。
MFA国コード画面クラスのインポートとインスタンス化
import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes' ;
const mfaCountryCodesManager = new MfaCountryCodes ();
// SDK Properties return a string, number or boolean
// ex. "login-id"
mfaCountryCodesManager . screen . name ;
// SDK Methods return an object or array
// ex. { signup: "/signup_url", reset_password: "/reset_password_url"}
await mfaCountryCodesManager . selectCountryCode ({
action: 'selection-action::US1'
});
プロパティ
MFA国コード画面クラスには以下のプロパティがあります。
branding
client
organization
prompt
screen
tenant
transaction
untrustedData
user
interface branding {
settings : null | BrandingSettings ;
themes : null | BrandingThemes ;
}
interface BrandingSettings {
colors ?: {
pageBackground ?: string | {
angleDeg : number ;
end : string ;
start : string ;
type : string ;
};
primary ?: string ;
};
faviconUrl ?: string ;
font ?: { url : string ;};
logoUrl ?: string ;
}
interface BrandingThemes {
default : {
borders : Record < string , string | number | boolean >;
colors : Record < string , string >;
displayName : string ;
fonts : Record < string , string | boolean | object >;
pageBackground : Record < string , string >;
widget : Record < string , string | number >;
};
}
See all 30 lines
interface client {
description : null | string ;
id : string ;
logoUrl : null | string ;
name : string ;
metadata : null | {[ key : string ] : string ;};
}
interface organization {
branding : null | {
colors ?: {
pageBackground ?: string ;
primary ?: string ;
};
logoUrl ?: string ;
};
displayName : null | string ;
id : null | string ;
metadata : null | {[ key : string ] : string ;};
name : null | string ;
usage : null | string ;
}
interface prompt {
name : string ;
}
interface screen {
captcha : null | CaptchaContext ;
captchaImage : null | string ;
captchaProvider : null | string ;
captchaSiteKey : null | string ;
data : null | { phone_prefixes : PhonePrefix []; };
isCaptchaAvailable : boolean ;
links : null | Record < string , string >;
name : string ;
texts : null | Record < string , string >;
}
interface CaptchaContext {
image ?: string ;
provider : string ;
siteKey ?: string ;
}
interface PhonePrefix {
country : string ;
country_code : string ;
phone_prefix : string ;
}
interface tenant {
enabledFactors : null | string [];
enabledLocales : null | string [];
friendlyName : null | string ;
name : null | string ;
}
interface transaction {
alternateConnections : null | ( Connection | EnterpriseConnection )[];
connectionStrategy : null | string ;
countryCode : null | string ;
countryPrefix : null | string ;
currentConnection : null | Connection ;
errors : null | Error [];
hasErrors : boolean ;
locale : string ;
state : string ;
}
interface Connection {
metadata ?: Record < string , string >;
name : string ;
strategy : string ;
}
interface EnterpriseConnection {
metadata ?: Record < string , string >;
name : string ;
options : {
displayName ?: string ;
iconUrl ?: string ;
showAsButton : boolean ;
};
strategy : string ;
}
See all 28 lines
interface untrustedData {
authorizationParams : null | {
login_hint ?: string ;
screen_hint ?: string ;
ui_locales ?: string ;
[ key : `ext- ${ string } ` ] : string ;
};
submittedFormData : null | {
[ key : string ] :
| string
| number
| boolean
| undefined ;
};
}
interface user {
appMetadata : null | {[ key : string ] : string ;};
email : null | string ;
enrolledDevices : null | ShortEntity < "device" >[];
enrolledEmails : null | ShortEntity < "email" >[];
enrolledFactors : null | string [];
enrolledPhoneNumbers : null | ShortEntity < "phoneNumber" >[];
id : null | string ;
organizations : null | {
branding : undefined | { logoUrl : undefined | string ;};
displayName : undefined | string ;
organizationId : undefined | string ;
organizationName : undefined | string ;
}[];
phoneNumber : null | string ;
picture : null | string ;
userMetadata : null | {[ key : string ] : string ;};
username : null | string ;
}
ShortEntity < Key > : {
id: number ;
} & Record < Key , string >
メソッド
MFA国コード画面クラスには以下のメソッドがあります。
goBack( options ?)
このメソッドはユーザーを前の画面に戻します。
import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes' ;
const mfaCountryCodes = new MfaCountryCodes ();
await mfaCountryCodes . goBack ();
パラメーター タイプ 必須 説明 [key: string]文字列 | 数字 | ブール値 | undefined 任意 ユーザーから収集した任意のデータです。
selectCountryCode( options ?)
このメソッドはユーザーが国コードを選択できるようにします。
import MfaCountryCodes from '@auth0/auth0-acul-js/mfa-country-codes' ;
const mfaCountryCodes = new MfaCountryCodes ();
// Get the available country codes and phone prefixes
const { screen } = mfaCountryCodes ;
const { phone_prefixes } = screen . data
const { country_code , phone_prefix } = phone_prefixes [ 0 ]
await mfaCountryCodes . selectCountryCode ({
country_code: 'US' ,
phone_prefix: '+1' ,
});
パラメーター タイプ 必須 説明 country_code文字列 必須 選択する国コードです。 phone_prefix文字列 必須 選択する電話番号の国番号です。 [key: string]文字列 | 数値 | ブール値 | undefined 任意 ユーザーから収集した任意のデータです。