mirror of
https://github.com/stack-auth/stack.git
synced 2026-06-21 21:09:49 +08:00
Access-token-only client sessions (no refresh token) were keyed by the access-token string. The remote development environment dashboard re-mints its short-lived access token every ~30-60s, so every refresh produced a brand-new InternalSession object. Session-scoped caches (useUser/useConfig/ useTeams/...) are keyed by the session object, so each refresh cold- invalidated them, suspended the tree, and blanked the dashboard. Key access-only sessions by the token's stable refresh_token_id instead of the raw token string, and add InternalSession.updateAccessToken so a freshly minted token is pushed into the existing session in place rather than constructing a new one. |
||
|---|---|---|
| .. | ||
| src | ||
| .eslintrc.cjs | ||
| LICENSE | ||
| package.json | ||
| tsconfig.json | ||
| tsdown.config.ts | ||
| vitest.config.ts | ||