Summary
Create a minimal web UI served by the 2kc Fastify server that displays approval request details and triggers WebAuthn assertion for approve/deny actions.
Context
When a grant request requires WebAuthn approval, the user receives a notification link. Clicking it opens this web page, which shows the request details and prompts for biometric verification.
Acceptance Criteria
Dependencies
Scope Boundaries
- No SPA framework (plain HTML + vanilla JS + @simplewebauthn/browser)
- No user management UI (enrollment is done via CLI)
- Styling is minimal/functional
Summary
Create a minimal web UI served by the 2kc Fastify server that displays approval request details and triggers WebAuthn assertion for approve/deny actions.
Context
When a grant request requires WebAuthn approval, the user receives a notification link. Clicking it opens this web page, which shows the request details and prompts for biometric verification.
Acceptance Criteria
@simplewebauthn/browseras a bundled client dependency (or inline the minimal client JS)src/server/public/(or inlined in route handler):GET /approve— serves the approval page (query params:requestId,token)POST /api/approve/:requestIdPOST /api/deny/:requestIdtokenquery param validated server-sideDependencies
Scope Boundaries