Skip to main content
The PasskeyEnrollmentLocal class implements the passkey-enrollment-local screen functionality. This screen allows users to enroll a passkey stored locally on their device as an authentication method.
Passkey Enrollment Local

Constructors

Create an instance of PasskeyEnrollmentLocal screen manager
Example
import PasskeyEnrollmentLocal from '@auth0/auth0-acul-js/passkey-enrollment-local';
const passkeyEnrollment = new PasskeyEnrollmentLocal();
passkeyEnrollment.continuePasskeyEnrollment();

Properties

Provides branding-related configurations, such as branding theme and settings.
Provides client-related configurations, such as id, name, and logoUrl, for the passkey-enrollment-local 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 passkey-enrollment-local screen, including its configuration and context.
Contains data related to the tenant, such as id and associated metadata.
Provides transaction-specific data for the passkey-enrollment-local screen, such as active identifiers and flow states.
Handles untrusted data passed to the SDK, such as user input during the passkey enrollment flow.
Details of the active user, including username, email, and roles.

Methods

continuePasskeyEnrollment
(options ?)
This method continues with the passkey enrollment process.
Example
import PasskeyEnrollmentLocal from '@auth0/auth0-acul-js/passkey-enrollment-local';

const passkeyEnrollment = new PasskeyEnrollmentLocal();
passkeyEnrollment.continuePasskeyEnrollment();
options
OPTIONAL
Optional payload.
abortPasskeyEnrollment
(options ?)
This method aborts the passkey enrollment process.
Example
import PasskeyEnrollmentLocal from '@auth0/auth0-acul-js/passkey-enrollment-local';

const passkeyEnrollment = new PasskeyEnrollmentLocal();
passkeyEnrollment.abortPasskeyEnrollment({
    doNotShowAgain: <boolean>
});
options
OPTIONAL
Optional payload.
getErrors
This method retrieves the array of transaction errors from the context, or an empty array if none exist.