Messenger/packages/core
Заид Омар Медхат | Zaid Omar Medhat 71e39c7e88 Fix refresh-token rotation race that logged users out
Two concurrent refresh calls (double-mounted bootstrap effect, second tab)
replayed the same cookie; the loser tripped reuse detection and revoked the
whole token family, forcing re-login.

- Client: single-flight /auth/refresh — concurrent callers share one request.
- Server: 30s grace window for a just-rotated token, but only while the
  family still has a live successor, so theft detection still kills a
  genuinely compromised family and logout stays final.

Co-Authored-By: Claude Fable 5 <noreply@anthropic.com>
Claude-Session: https://claude.ai/code/session_01BFRyKxkKEjfAgpXygzoNiD
2026-07-11 01:53:04 +05:00
..
src Fix refresh-token rotation race that logged users out 2026-07-11 01:53:04 +05:00
eslint.config.mjs init 2026-07-10 13:31:12 +05:00
package.json simple chat init 2026-07-10 15:32:34 +05:00
tsconfig.json Realtime connection 2026-07-10 15:04:36 +05:00