11---
2- status : in-progress
2+ status : done
33depends : []
44specs :
55 - specs/behaviors/authorization.md
@@ -42,12 +42,12 @@ longer access tokens.
4242
4343## Validation
4444
45- - [ ] ` npm run type-check && npm run lint && npm test ` clean.
46- - [ ] API test: refresh sets a 90-day refresh cookie and the hint, writes no
45+ - [x ] ` npm run type-check && npm run lint && npm test ` clean.
46+ - [x ] API test: refresh sets a 90-day refresh cookie and the hint, writes no
4747 revocation; logout clears the hint.
48- - [ ] Web tests: load-time refresh only with the hint; a 401 refreshes once
48+ - [x ] Web tests: load-time refresh only with the hint; a 401 refreshes once
4949 and retries.
50- - [ ] Devbox: with the access cookie gone and the refresh cookie kept, a
50+ - [x ] Devbox: with the access cookie gone and the refresh cookie kept, a
5151 reload comes back signed in.
5252
5353## Risks / unknowns
@@ -58,4 +58,15 @@ longer access tokens.
5858
5959## Notes
6060
61+ - Devbox check (curl, the SPA's sequence): password sign-in set
62+ ` cfp_session ` , ` cfp_refresh ` (90 days) and ` cfp_has_session ` ; with the
63+ access cookie dropped ` /me ` was anonymous, ` POST /api/auth/refresh `
64+ returned 200, and ` /me ` was signed in again. No data-repo commit came
65+ from the refresh. The SPA's side is covered by the web tests.
66+ - Before this, the refresh endpoint revoked the old token with a public
67+ commit on every refresh; it never fired in practice because nothing
68+ called it.
69+
6170## Follow-ups
71+
72+ - ** None.**
0 commit comments