Passkeys & WebAuthn (FIDO2 Biometrics)
Implement passwordless biometric authentication (Touch ID, Face ID, Windows Hello, and hardware keys) with zero SMS/email costs and full phishing resistance.
1. How Passkeys Work in HVT
HVT implements the FIDO2 / WebAuthn standard using asymmetric COSE public-key cryptography. When a user registers a passkey, their device generates a private key that never leaves its secure enclave (Apple Secure Enclave, TPM). The browser returns only the public key to HVT.
During sign-in, HVT issues a cryptographic challenge. The user touches their fingerprint or looks at their camera, the hardware signs the challenge, and HVT verifies the signature.
2. One-Line Sign-in with React SDK
Use the useHVTAuth hook to trigger biometric authentication:
3. Registering New Passkeys in Settings
Users can register multiple passkeys (e.g. MacBook Touch ID, iPhone, and a YubiKey backup):
4. Replay & Cloning Attack Prevention
Every passkey record in HVT tracks an incrementing sign_count. If an attacker attempts to clone a physical authenticator, HVT detects the duplicate or lower sequence counter and immediately blocks the authentication session.