mirror of
https://github.com/wu736139669/hapi.git
synced 2026-11-24 04:47:03 +00:00
Add WebAuthn passkeys as another way to obtain a web JWT, so the browser no longer has to keep CLI_API_TOKEN after the first sign-in. - hub: passkey_credentials table (schema v36), register/list/delete routes behind the JWT, unauthenticated login routes with one-time challenges, and a 30-day passkey session exchanged via POST /api/auth. Passkeys are bound to the registering namespace, the browser origin (same host or an explicit CORS origin; HTTPS or localhost), and an HMAC fingerprint of CLI_API_TOKEN, so rotating the token revokes them. - web: "Sign in with a passkey" on the login screen, Settings → Passkeys, passkey auth source with silent JWT refresh, en/zh-CN/ru strings. - docs: client contract, hub README, PWA guide.