Repository navigation
fix: recover expired sessions instead of failing silently - #94
Merged
Merged
Conversation
Tabs left open through sleep or browser throttling missed the refresh interval, so every request failed with auth errors while the private layout kept rendering. Now the client revalidates the session on visibilitychange/focus/online, any 401/403 on an authenticated request signs out and redirects to login preserving the intended path, and the server lets the refresh endpoint exchange tokens expired up to 12 hours ago so waking tabs resume without a forced re-login. Fixes #93 💘 Generated with Crush Assisted-by: Crush:kimi-k3
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.
Fixes #93
Summary
/rest/**request failed with auth errors while the private layout kept rendering. The client now revalidates the session onvisibilitychange/focus/online(throttled to once a minute), so a waking tab re-authenticates immediately.REDIRECT_PATH; public and/auth/**calls (e.g. failed logins) are exempt.Verification
💘 Generated with Crush