Skip to main content
MfaWebAuthnChangeKeyNicknameMembers
Example

Properties

The screen object with MFA WebAuthn Change Key Nickname specific data structure.

Methods

continueWithNewNickname
Promise<void>
Submits the new nickname for the WebAuthn security key. This action corresponds to the user entering a new nickname and clicking a “Save” or “Continue” button. The SDK will POST this new nickname to the Auth0 /u/mfa-webauthn-change-key-nickname endpoint.If the new nickname is valid and the update is successful, Auth0 will typically redirect the user to the next appropriate screen (e.g., back to MFA factor management or a success confirmation). If the nickname is invalid (e.g., empty, too long, too short), Auth0 will re-render the ‘mfa-webauthn-change-key-nickname’ screen, and the transaction.errors array in the SDK’s context will be updated with details about the validation failure.A promise that resolves when the form submission is initiated. It does not return data directly upon resolution, as a redirect or page re-render is the common outcome.

Throws

Throws an error if payload.nickname is not provided or is not a string, or if the FormHandler encounters an unrecoverable issue during submission (e.g., network error). Validation errors from Auth0 (like an invalid nickname) are not thrown as JavaScript errors but are reflected in this.transaction.errors after the operation.
Example