You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: docs/authentication.md
+2-2Lines changed: 2 additions & 2 deletions
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -19,7 +19,7 @@ sequenceDiagram
19
19
CLI->>CLI: Open browser
20
20
Note over Web: User completes OAuth
21
21
Web->>DB: Resolve opaque token to signed payload
22
-
Web->>DB: Delete opaque token
22
+
Web->>DB: Mark opaque token consumed
23
23
Web->>DB: Check fingerprint ownership
24
24
Web->>DB: Create/update session
25
25
loop Every 5s
@@ -74,7 +74,7 @@ sequenceDiagram
74
74
75
75
- Signed auth payloads expire after 1 hour
76
76
- Browser login URLs use opaque 43-character tokens instead of exposing the signed auth payload
77
-
- Opaque browser tokens are stored in `verificationToken` under `cli-login:<token>` and consumed with `DELETE ... RETURNING` when onboarding resolves them
77
+
- Opaque browser tokens are stored in `verificationToken` under `cli-login:<token>` and atomically moved to `cli-login-consumed:<token-hash>` when onboarding resolves them; consumed markers scrub the signed auth payload from the `token` column
78
78
- Fingerprint uniqueness: hardware info + 8 random bytes
0 commit comments