Skip to main content
The PhoneIdentifierEnrollment class implements the phone-identifier-enrollment screen functionality. This screen allows users to enroll a phone number as an identifier by selecting their preferred verification delivery method.
PhoneIdentifierEnrollment

Constructors

Create an instance of PhoneIdentifierEnrollment screen manager
Example
import PhoneIdentifierEnrollment from '@auth0/auth0-acul-js/phone-identifier-enrollment';
const phoneIdentifierEnrollment = new PhoneIdentifierEnrollment();
phoneIdentifierChallenge.continuePhoneEnrollment({
    type: "<text' | 'voice>"
});

Properties

Provides branding-related configurations, such as branding theme and settings.
Provides client-related configurations, such as id, name, and logoUrl, for the phone-identifier-enrollment screen.
Provides information about the user’s organization, such as organization id and name.
Contains data about the current prompt in the authentication flow.
Contains details specific to the phone-identifier-enrollment screen, including its configuration and context.
Contains data related to the tenant, such as id and associated metadata.
Provides transaction-specific data for the phone-identifier-enrollment screen, such as active identifiers and flow states.
Handles untrusted data passed to the SDK, such as user input during the phone enrollment flow.
Details of the active user, including username, email, and roles.

Methods

continuePhoneEnrollment
(options ?)
This method continues the phone enrollment process with the selected delivery method.
Example
import PhoneIdentifierEnrollment from '@auth0/auth0-acul-js/phone-identifier-enrollment';

const phoneIdentifierEnrollment = new PhoneIdentifierEnrollment();
phoneIdentifierChallenge.continuePhoneEnrollment({
    type: "<text' | 'voice>"
});
options
OPTIONAL
Optional payload.
returnToPrevious
(options ?)
This method navigates the user back to the previous screen.
Example
import PhoneIdentifierEnrollment from '@auth0/auth0-acul-js/phone-identifier-enrollment';

const phoneIdentifierEnrollment = new PhoneIdentifierEnrollment();
phoneIdentifierChallenge.returnToPrevious();
options
OPTIONAL
Optional payload.
getErrors
This method retrieves the array of transaction errors from the context, or an empty array if none exist.