Overview
TheWebAuthn service manages FIDO2/WebAuthn passkey credentials for end-users. Generate registration options, verify attestation responses, list credentials, and delete them.
Register Options
Generate WebAuthn registration options for a principal. Returns aPublicKeyCredentialCreationOptions-compatible struct to send to the browser.
Parameters
Response (WebAuthnRegisterOptions)
Register Verify
Verify a WebAuthn registration response. On success, the credential is stored and associated with the principal.Parameters
Response (WebAuthnCredential)
List Credentials
List all WebAuthn credentials registered for a principal.Parameters
Response
Returns[]WebAuthnCredential. See above for field descriptions.
Delete Credential
Delete a WebAuthn credential by its ID.Parameters
Returns
nil on success.