When the dashboard token refresh endpoint returned 429 (shared critical rate limit) the frontend classified it as out_of_sync, cleared local auth state, and redirected to /sign-in. The rate limit itself is working as intended; the bug is that a temporary rejection was treated as a terminal auth failure. - Treat 429 refresh responses as transient errors on the frontend, keeping the session retryable instead of clearing it. Only explicit 401 or confirmed session mismatch/race exhaustion clears auth state. - Return Retry-After on all rate-limited responses (remaining TTL on Redis, window duration on the in-memory limiter) so clients can back off. - Log the underlying error with request context when auth session errors map to 500 AUTH_INTERNAL_ERROR, and replace fmt.Println with request-scoped logging in the Redis rate limiter error paths. Fixes #6361
| Name |
Last commit
|
Last Update |
|---|---|---|
| .. | ||
| admin-permissions.ts | Loading commit data... | |
| api.ts | Loading commit data... | |
| auth-session-sync.ts | Loading commit data... | |
| auth-session.test.ts | Loading commit data... | |
| auth-session.ts | Loading commit data... | |
| avatar.ts | Loading commit data... | |
| build-metadata.ts | Loading commit data... | |
| channel-connection-info.ts | Loading commit data... | |
| colors.ts | Loading commit data... | |
| constants.ts | Loading commit data... | |
| content-format.ts | Loading commit data... | |
| cookies.ts | Loading commit data... | |
| copy-to-clipboard.ts | Loading commit data... | |
| currency.ts | Loading commit data... | |
| dayjs.ts | Loading commit data... | |
| dom-utils.ts | Loading commit data... | |
| format.ts | Loading commit data... | |
| frontend-cache.ts | Loading commit data... | |
| handle-server-error.ts | Loading commit data... | |
| http-client.ts | Loading commit data... | |
| http-status-code-rules.ts | Loading commit data... | |
| legacy-route.test.ts | Loading commit data... | |
| legacy-route.ts | Loading commit data... | |
| lobe-icon.tsx | Loading commit data... | |
| motion.ts | Loading commit data... | |
| nav-modules.ts | Loading commit data... | |
| oauth.ts | Loading commit data... | |
| passkey.ts | Loading commit data... | |
| roles.ts | Loading commit data... | |
| secure-verification.ts | Loading commit data... | |
| server-error-message.test.ts | Loading commit data... | |
| server-error-message.ts | Loading commit data... | |
| show-submitted-data.tsx | Loading commit data... | |
| theme-customization.ts | Loading commit data... | |
| theme-radius.ts | Loading commit data... | |
| time.ts | Loading commit data... | |
| use-chart-theme.ts | Loading commit data... | |
| use-controllable-state.ts | Loading commit data... | |
| utils.ts | Loading commit data... | |
| vchart.ts | Loading commit data... |