Example
Properties
The active Experiment Center experiment for this screen, or
null when no experiment is active (or the screen has not opted in via context_configuration).The screen object with MFA WebAuthn Platform Enrollment specific data structure.
Methods
Allows the user to refuse WebAuthn platform enrollment on the current device.
This action indicates the user does not want to use a platform authenticator on this specific device.A promise that resolves when the refusal action is successfully submitted.
Throws
Throws an error if the submission fails.Example
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()).A promise that resolves when the credential is successfully created and submitted.Throws
Throws an error ifthis.screen.publicKey is not available, if createPasskeyCredentials fails
(e.g., user cancellation, hardware issues), or if the submission to the server fails.Example