Skip to main content

Overview

The webauthn client manages FIDO2/WebAuthn passkey credentials for your end-users. Register passkeys, verify attestation responses, list credentials, and delete them. Access the webauthn client via client.webauthn.

Register Options

Generate WebAuthn registration options for a principal. Returns a PublicKeyCredentialCreationOptions-compatible dict to pass to the browser’s navigator.credentials.create().

Parameters

WebAuthnRegisterOptions

Register Verify

Verify a WebAuthn registration response from the browser. On success, the credential is stored and associated with the principal.

WebAuthnRegisterVerifyParams

WebAuthnCredential

List Credentials

List all WebAuthn credentials registered for a principal.

Parameters

Response

Returns a list[WebAuthnCredential]. See above for field descriptions.

Delete Credential

Delete a WebAuthn credential by its ID. The credential is immediately invalidated.

Parameters

The method returns None. A GrantexApiError is raised if the credential does not exist.

Example: Full Passkey Flow

Last modified on March 8, 2026