All Web SDK methods for security keys require you to initiate an action
first.
Enroll
Start enrollment for a new security key by prompting the user to register their hardware authenticator.Parameters
An array of WebAuthn credential hints which guide
the browser’s UI, e.g.
["security-key"].Response
Verify
Re-authenticate an existing security key by prompting the user to present their hardware authenticator.Response
Security key error handling
When any of the underlying native browser WebAuthn APIs fail, the SDK will throw aWebAuthnError. Most of these errors are benign and can be safely ignored, for example when the user cancels the ceremony. If you wish to handle them, catch the error in a try/catch block. See Passkey error handling for the common error codes.
