feat: implement WebAuthn Passkeys register/login API and client onboarding UI

This commit is contained in:
2026-05-27 21:28:15 +02:00
parent db8b454a9e
commit 35479cfff3
11 changed files with 1276 additions and 295 deletions
+2 -2
View File
@@ -29,7 +29,7 @@ Kapteins Daagbox will be built in four logical phases following a clean data-to-
Plans:
- [x] 01-01: Initialize Vite React TS client, Node.js Express TS server, Prisma PostgreSQL schema, and react-i18next locales.
- [ ] 01-02: Implement WebAuthn backend/frontend flows using SimpleWebAuthn library to register and log in users.
- [x] 01-02: Implement WebAuthn backend/frontend flows using SimpleWebAuthn library to register and log in users.
- [ ] 01-03: Setup client-side Web Crypto helper deriving E2E keys from biometric PRF credentials or a 12-word recovery phrase.
### Phase 2: Sync Protocol & Multi-Logbooks
@@ -82,7 +82,7 @@ Phases execute in numeric order: 1 → 2 → 3 → 4
| Phase | Plans Complete | Status | Completed |
|-------|----------------|--------|-----------|
| 1. Foundation, Auth & E2E Crypto | 1/3 | In progress | - |
| 1. Foundation, Auth & E2E Crypto | 2/3 | In progress | - |
| 2. Sync Protocol & Multi-Logbooks | 0/2 | Not started | - |
| 3. Master Data & Log entries | 0/3 | Not started | - |
| 4. CSV Export & UI Polish | 0/2 | Not started | - |
+7 -7
View File
@@ -10,30 +10,30 @@ See: .planning/PROJECT.md (updated 2026-05-26)
## Current Position
Phase: 1 of 4 (Foundation, Auth & E2E Crypto)
Plan: 2 of 3 in current phase
Plan: 3 of 3 in current phase
Status: Ready to plan
Last activity: 2026-05-27 — Plan 01-01 executed (Monorepo codebase, Vite React client, Express server, Prisma schema setup)
Last activity: 2026-05-27 — Plan 01-02 executed (WebAuthn Passkey registration/login backend APIs, crypto key derivations, onboarding UI panel)
Progress: [█░░░░░░░░] 10%
Progress: [█░░░░░░░░] 20%
## Performance Metrics
**Velocity:**
- Total plans completed: 1
- Total plans completed: 2
- Average duration: 15 min
- Total execution time: 0.25 hours
- Total execution time: 0.5 hours
**By Phase:**
| Phase | Plans | Total | Avg/Plan |
|-------|-------|-------|----------|
| 1. Foundation, Auth & E2E Crypto | 1/3 | - | - |
| 1. Foundation, Auth & E2E Crypto | 2/3 | - | - |
| 2. Sync Protocol & Multi-Logbooks | 0/2 | - | - |
| 3. Master Data & Log entries | 0/3 | - | - |
| 4. CSV Export & UI Polish | 0/2 | - | - |
**Recent Trend:**
- Last 5 plans: [01-01]
- Last 5 plans: [01-01, 01-02]
- Trend: Stable
*Updated after each plan completion*