Skip to main content

MFA Webauthn Change Key Nickname screen class

The Webauthn Change Key Nickname screen class provides methods associated with the mfa-webauthn-change-key-nickname screen.
Import and instantiate the MFA Webauthn Change Key Nickname screen class:

Properties

The MFA Webauthn Change Key Nickname screen class properties are:

Methods

The MFA Webauthn Change Key Nickname screen class methods is:

continueWithNewNickname( options? )

This method submits the new nickname provided by the user for their WebAuthn security key.
ParameterTypeRequiredDescription
nicknamestringYesThe nickame entered by the user.
[key: string]string | number | boolean | undefinedNoAdditional data collected from the user.

MFA Webauthn Enrollment Success screen class

The MFA Webauthn Enrollment Success screen class provides methods associated with the mfa-webauthn-enrollment-success screen.
Import and instantiate the MFA Webauthn Enrollment Success screen class:

Properties

The MFA Webauthn Enrollment Success screen class properties are:

Methods

The MFA Webauthn Enrollment Success screen class methods is:

continue( options? )

This method allows the user to continue the authentication flow after a successful WebAuthn enrollment.
Parameter                 TypeRequiredDescription
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

MFA Webauthn Error screen class

The MFA Webauthn Error screen class provides methods associated with the mfa-webauthn-error screen.
Import and instantiate the MFA Webauthn Error screen class:

Properties

The MFA Webauthn Error screen class properties are:

Methods

The MFA Webauthn Error screen class methods are:

noThanks( options? )

This method allows the user to decline the current WebAuthn operation (e.g., refuse to add a device during enrollment).
Parameter                 TypeRequiredDescription
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

tryAgain( options? )

This method allows the user to retry the previous WebAuthn operation.
Parameter                 TypeRequiredDescription
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

tryAnotherMethod( options? )

This method allows the user to choose a different Multi-Factor Authentication method.
Parameter                 TypeRequiredDescription
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

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).
Parameter                 TypeRequiredDescription
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

MFA Webauthn Not Available Error screen class

The MFA Webauthn Not Available Error screen class provides methods associated with the mfa-webauthn-platform-not-available-error screen.
Import and instantiate the MFA Webauthn Not Available Error screen class:

Properties

The MFA Webauthn Not Available Error screen class properties are:

Methods

The MFA Webauthn Platform Challenge screen class methods are:

getError( options? )

This method retrieves the array of transaction errors from context or an empty array if none exist.

tryAnotherMethod( options? )

This method allows the user to try another MFA method. This corresponds to the “Try Another Method” button.
Parameter                 TypeRequiredDescription
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

MFA Webauthn Platform Challenge screen class

The MFA Webauthn Platform Challenge screen class provides methods associated with the mfa-webauthn-platform-challenge screen.
Import and instantiate the MFA Webauthn Platform Challenge screen class:

Properties

The MFA Webauthn Platform Challenge screen class properties are:

Methods

The MFA Webauthn Platform Challenge screen class methods are:

reportBrowserError( options? )

This method reports a browser-side error encountered during the WebAuthn navigator.credentials.get() operation. It sends the error details to the server with a specific action format.
ParameterTypeRequiredDescription
errormessage: string | name: stringYesThe error object from the WebAuthn API (navigator.credentials.get()) to be reported.
[key: string]string | number | boolean | undefinedNoAdditional data collected from the user.

tryAnotherMethod( options? )

This method allows the user to opt-out of the WebAuthn platform challenge and select a different MFA method.
Parameter                 TypeRequiredDescription
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

verify( options? )

This method initiates the WebAuthn platform authenticator challenge.
ParameterTypeRequiredDescription
rememberDevicebooleanNoRemember the browser for future MFA challenges. Corresponds to the rememberBrowser form field. This is only applicable if screen.showRememberDevice is true.
[key: string]string | number | boolean | undefinedNoAdditional data collected from the user.

MFA Webauthn Platform Enrollment screen class

The MFA Webauthn Platform Enrollment screen class provides methods associated with the mfa-webauthn-platform-enrollment screen.
Import and instantiate the MFA Webauthn Platform Enrollment screen class:

Properties

The MFA Webauthn Platform Enrollment screen class properties are:

Methods

The MFA Webauthn Platform Enrollment screen class methods are:

refuseEnrollmentOnThisDevice( options? )

This method allows the user to refuse WebAuthn platform enrollment on the current device.
Parameter                 TypeRequiredDescription
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

reportBrowserError( options? )

This method reports a browser-side error encountered during the WebAuthn navigator.credentials.create() operation.
ParameterTypeRequiredDescription
errormessage: string | name: stringYesThe error object from the WebAuthn API (navigator.credentials.get()) to be reported.
[key: string]string | number | boolean | undefinedNoAdditional data collected from the user.

snoozeEnrollment( options? )

This method allows the user to choose to snooze the WebAuthn platform enrollment.
Parameter                 TypeRequiredDescription
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

submitPasskeyCredential( options? )

This method initiates the WebAuthn platform credential creation process using the public key options available on this.screen.publicKey and submits the resulting credential to the server. This method internally calls createPasskeyCredentials (which wraps navigator.credentials.create()).
Parameter                 TypeRequiredDescription
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

MFA Webauthn Roaming Challenge screen class

The MFA Webauthn Roaming Challenge screen class provides methods associated with the mfa-webauthn-roaming-challenge screen.
Import and instantiate the MFA Webauthn Roaming Challenge screen class:

Properties

The MFA Webauthn Roaming Challenge screen class properties are:

Methods

The MFA Webauthn Roaming Challenge screen class methods are:

reportWebauthn( options? )

This method reports a specific WebAuthn API error to Auth0. This method should be used if navigator.credentials.get() fails in a way that verify() does not automatically handle, or if the developer wants to explicitly report an error before trying another action. It submits the error details with action: "showError::{errorDetails}".
ParameterTypeRequiredDescription
errormessage: string | name: stringYesThe error object from the WebAuthn API (navigator.credentials.get()) to be reported.
[key: string]string | number | boolean | undefinedNoAdditional data collected from the user.

tryAnotherMethod( options? )

This method allows the user to opt-out of the WebAuthn challenge and select a different MFA method.
Parameter                 TypeRequiredDescription
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

verify( options? )

This method initiates the WebAuthn platform authenticator challenge by calling navigator.credentials.get() with the options provided in screen.data.publicKeyChallengeOptions.
ParameterTypeRequiredDescription
rememberDevicebooleanNoRemember the browser for future MFA challenges. Corresponds to the rememberBrowser form field. This is only applicable if screen.showRememberDevice is true.
[key: string]string | number | boolean | undefinedNoAdditional data collected from the user.

MFA Webauthn Roaming Enrollment screen class

The MFA Webauthn Roaming Enrollment screen class provides methods associated with the mfa-webauthn-roaming-enrollment screen.
Import and instantiate the MFA Webauthn Roaming Enrollment screen class:

Properties

The MFA Webauthn Roaming Enrollment screen class properties are:

Methods

The MFA Webauthn Roaming Enrollment screen class methods are:

enroll( options? )

This method initiates the WebAuthn credential creation and submits the result to the server. This corresponds to the user interacting with the FIDO Security Keys prompt.
Parameter                 TypeRequiredDescription
[key: string]string | number | boolean | undefinedNoOptional data collected from user.

showError( options? )

This method submits details about a WebAuthn browser error to the server. This is used when the browser’s WebAuthn API encounters an error.
ParameterTypeRequiredDescription
errormessage: string | name: stringYesThe error object from the WebAuthn API (navigator.credentials.get()) to be reported.
[key: string]string | number | boolean | undefinedNoAdditional data collected from the user.

tryAnotherMethod( options? )

This method allows the user to try another MFA method. This corresponds to the “Try Another Method” button.
Parameter                 TypeRequiredDescription
[key: string]string | number | boolean | undefinedNoOptional data collected from user.