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. |
||
|---|---|---|
| .. | ||
| scripts | ||
| src | ||
| .env | ||
| .eslintrc.cjs | ||
| .gitignore | ||
| components.json | ||
| LICENSE | ||
| next-env.d.ts | ||
| package-template.json | ||
| package.json | ||
| postcss.config.js | ||
| quetzal.config.json | ||
| README.md | ||
| tailwind.config.js | ||
| tsconfig.json | ||
| tsdown.config.ts | ||
| vitest.config.ts | ||
This package has been renamed.
Stack Auth is now Hexclave! The new packages are:
- @hexclave/next
- @hexclave/react
- @hexclave/js
- @hexclave/cli
See the migration guide for more information.