Skip to main content
The MFAWebauthnError screen class provides methods associated with the mfa-webauthn-error screen.
MFAWebauthnError

Constructors

Create an instance of MFAWebauthnError screen
Example
import MfaWebAuthnError from "@auth0/auth0-acul-js/mfa-webauthn-error";
const mfaWebAuthnErrorManager = new MfaWebAuthnError();

Properties

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

Methods

getErrors
This method retrieves the array of transaction errors from the context, or an empty array if none exist.
noThanks
(options ?)
This method allows the user to decline the current WebAuthn operation (e.g., refuse to add a device during enrollment). This action signifies the user’s choice not to proceed with the WebAuthn step at this time. Returns a promise that resolves upon successful submission of the ‘refuse-add-device’ action.
Example
import MfaWebAuthnError from "@auth0/auth0-acul-js/mfa-webauthn-error";
const sdk = new MfaWebAuthnError();

await sdk.noThanks();
options
OPTIONAL
Optional custom parameters to be sent with the request.
tryAgain
(options ?)
This method allows the user to retry the previous WebAuthn operation. This action typically redirects the user to the screen where the WebAuthn process was initially attempted (e.g., back to the MFA challenge or enrollment screen for WebAuthn). Returns a promise that resolves upon successful submission of the ‘tryagain’ action.
Example
import MfaWebAuthnError from "@auth0/auth0-acul-js/mfa-webauthn-error";
const sdk = new MfaWebAuthnError();

await sdk.tryAgain();
options
OPTIONAL
Optional custom parameters to be sent with the request.
tryAnotherMethod
(options ?)
This method allows the user to choose a different Multi-Factor Authentication method. This action navigates the user to a screen where they can select from other available/enrolled MFA factors. Returns a promise that resolves upon successful submission of the ‘pick-authenticator’ action.
Example
import MfaWebAuthnError from "@auth0/auth0-acul-js/mfa-webauthn-error";
const sdk = new MfaWebAuthnError();

await sdk.tryAnotherMethod();
options
OPTIONAL
Optional custom parameters to be sent with the request.
usePassword
(options ?)
This method allows the user to attempt authentication using their password, if this alternative is configured and appropriate for the current flow (e.g., if password was a prior authentication step or is a valid MFA bypass). Returns a promise that resolves upon successful submission of the ‘use-password’ action.
Example
import MfaWebAuthnError from "@auth0/auth0-acul-js/mfa-webauthn-error";
const sdk = new MfaWebAuthnError();

await sdk.usePassword();
options
OPTIONAL
Optional custom parameters to be sent with the request.