Skip to main content

Module webauthn

Module webauthn 

Source
Expand description

WebAuthn (Passkey) authentication handlers

Structs§

CredentialInfo
Credential info for listing (without sensitive data)
LoginChallengeRes
Login challenge response Note: options is serialized as JSON Value to extract just the publicKey contents
LoginReq
Login request body
RegChallengeRes
Registration challenge response Note: options is serialized as JSON Value to extract just the publicKey contents which is what @simplewebauthn/browser expects
RegReq
Registration request body

Functions§

delete_reg
DELETE /api/auth/wa/reg/{key_id} - Delete a credential
get_login_challenge
GET /api/auth/wa/login/challenge - Get login challenge
get_reg_challenge
GET /api/auth/wa/reg/challenge - Get registration challenge
list_reg
GET /api/auth/wa/reg - List WebAuthn credentials
post_login
POST /api/auth/wa/login - Authenticate with WebAuthn
post_reg
POST /api/auth/wa/reg - Register a new credential