Commit 0b9ef8f
committed
feat(passkeys): Add passkey manager functions
Because:
- The passkey routes needs to enforce business rules before touching the database
This commit:
- Implements PasskeyManager with the full passkey lifecycle: register, post-auth update, list, rename, delete, and bulk delete
- Guards maxPasskeysPerUser config with @min(1) to prevent accidentally disabling registration
- Adds unit and integration tests for the manager
Closes #FXA-130641 parent 2fac797 commit 0b9ef8f
7 files changed
Lines changed: 886 additions & 75 deletions
File tree
- libs/accounts/passkey/src/lib
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
52 | 52 | | |
53 | 53 | | |
54 | 54 | | |
55 | | - | |
| 55 | + | |
56 | 56 | | |
57 | 57 | | |
58 | 58 | | |
| |||
| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
24 | 24 | | |
25 | 25 | | |
26 | 26 | | |
27 | | - | |
| 27 | + | |
28 | 28 | | |
29 | 29 | | |
30 | 30 | | |
| |||
42 | 42 | | |
43 | 43 | | |
44 | 44 | | |
45 | | - | |
| 45 | + | |
46 | 46 | | |
47 | 47 | | |
48 | 48 | | |
| |||
0 commit comments