Documentation Index Fetch the complete documentation index at: https://auth0.com/llms.txt
Use this file to discover all available pages before exploring further.
The MfaSmsChallenge class implements the mfa-sms-challenge screen functionality. This screen is displayed when the user needs to enter an SMS code to verify their identity.
Constructors
Create an instance of MFA SMS Challenge screen manager:
import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge' ;
const mfaSmsChallenge = new MfaSmsChallenge ();
await mfaSmsChallenge . continueMfaSmsChallenge ({
code: '123456' ,
rememberDevice: true ,
});
Properties
Provides branding-related configurations, such as branding theme and settings.
Provides client-related configurations, such as id, name, and logoUrl, for the mfa-sms-challenge screen.
Provides information about the user’s Organization, such as id and name.
Contains data about the current prompt in the authentication flow.
Contains details specific to the mfa-sms-challenge screen, including its configuration and context.
Contains data related to the tenant, such as id and associated metadata.
Provides transaction-specific data for the mfa-sms-challenge screen, such as active identifiers and flow states.
Handles untrusted data passed to the SDK, such as user input during MFA SMS challenge.
Details of the active user, including username, email, and roles.
Methods
This method changes the display language of the Universal Login page. import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge' ;
const mfaSmsChallenge = new MfaSmsChallenge ();
mfaSmsChallenge . changeLanguage ({
language: 'fr' ,
});
Method Parameters The locale code for the desired language (for example, 'en', 'fr', 'es').
When set to 'session', the selected language persists for the duration of the session.
[`key`: `string`]
"string" | "number" | "boolean" | "undefined"
Additional custom fields prefixed with ulp- (for example, 'ulp-custom-field').
This method submits the MFA SMS challenge with the provided code. import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge' ;
const mfaSmsChallenge = new MfaSmsChallenge ();
await mfaSmsChallenge . continueMfaSmsChallenge ({
code: '123456' ,
rememberDevice: true ,
});
Method Parameters The SMS code entered by the user.
When set to true, registers this device as trusted so the user is not prompted for MFA on subsequent logins from the same device.
[`key`: `string`]
"string" | "number" | "boolean" | "undefined"
Additional data collected from the user.
This method switches the verification method to a voice call. import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge' ;
const mfaSmsChallenge = new MfaSmsChallenge ();
await mfaSmsChallenge . getACall ();
Method Parameters [`key`: `string`]
"string" | "number" | "boolean" | "undefined"
Additional data collected from the user.
This method retrieves the array of transaction errors from the context, or an empty array if none exist.
This method navigates to the screen where the user can pick a different SMS number. import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge' ;
const mfaSmsChallenge = new MfaSmsChallenge ();
await mfaSmsChallenge . pickSms ();
Method Parameters [`key`: `string`]
"string" | "number" | "boolean" | "undefined"
Additional data collected from the user.
This method resends the SMS verification code to the user. import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge' ;
const mfaSmsChallenge = new MfaSmsChallenge ();
await mfaSmsChallenge . resendCode ();
Method Parameters [`key`: `string`]
"string" | "number" | "boolean" | "undefined"
Additional data collected from the user.
This method provides resend functionality with configurable timeout and status management. import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge' ;
const mfaSmsChallenge = new MfaSmsChallenge ();
const { startResend } = mfaSmsChallenge . resendManager ({
timeoutSeconds: 15 ,
onStatusChange : ( remainingSeconds , isDisabled ) => {
console . log ( `Resend available in ${ remainingSeconds } s, disabled: ${ isDisabled } ` );
},
onTimeout : () => {
console . log ( 'Resend is now available' );
},
});
startResend ();
Method Parameters Callback invoked whenever the resend status changes, receiving the remaining seconds and whether resend is currently disabled.
Callback invoked when the resend timeout expires and the resend option becomes available.
The number of seconds before the resend option becomes available.
This method allows the user to try another MFA method. import MfaSmsChallenge from '@auth0/auth0-acul-js/mfa-sms-challenge' ;
const mfaSmsChallenge = new MfaSmsChallenge ();
await mfaSmsChallenge . tryAnotherMethod ();
Method Parameters [`key`: `string`]
"string" | "number" | "boolean" | "undefined"
Additional data collected from the user.