Secure WebAuthn passkey authentication with biometric verification
Ave uses WebAuthn passkeys for passwordless authentication, allowing users to sign in with biometrics (Face ID, Touch ID, Windows Hello) or device PINs instead of traditional passwords.
Passkeys are cryptographic key pairs stored securely on your device. When you register, Ave creates a passkey that only works on your device and only for Ave.
1
User enters handle
Start by entering your unique handle (e.g., alice). Ave looks up your account and checks which authentication methods are available.
2
WebAuthn challenge
Your browser receives a cryptographic challenge from Ave’s server. This challenge is unique and expires after 10 minutes.
3
Biometric verification
Your device prompts for biometric authentication (fingerprint, face scan) or PIN. The private key is used to sign the challenge without ever leaving your device.
4
Session created
Ave verifies the signature and creates a session that lasts 30 days. You’re logged in across all your devices.
Passkeys use the resident key (discoverable credential) feature, which means you don’t need to enter your username first. Your browser can suggest available accounts.
Sign in on a new device by approving the request from a trusted device:
// POST /api/login/request-approval{ "handle": "alice", "requesterPublicKey": "base64-encoded-ephemeral-key", "device": { /* device info */ }}// Returns request ID{ "requestId": "uuid", "expiresAt": "2024-01-01T12:05:00Z"}// Poll for status: GET /api/login/request-status/:requestId
Your trusted devices receive real-time notifications via WebSocket. When approved, the master key is securely transferred using ephemeral key exchange (ECDH).
Device approval requests expire after 5 minutes. Both WebSocket and polling are supported for maximum compatibility.