This repository was archived by the owner on May 14, 2026. It is now read-only.
add Sign Out + auto-clear stale sessions - #14
Merged
Conversation
Users had no way to sign out — the session ID lived in localStorage forever and a hard refresh did nothing. After the worker's 2h KV TTL expired, the front-end still acted "signed in" but every API call silently 401'd. - Add signOut(): POST /auth/logout, clear all grok_* + ghHandle localStorage keys, reload to a clean URL (no ?session=... carryover) - Render a "Sign out" link inside the X connection cell when authed - safeFetch now auto-detects stale sessions: any 401 with a session- related error message clears local state and reloads - On the next load after auto-clear, surface a "Your sign-in expired. Please sign in again." notice via the existing showMintError overlay https://claude.ai/code/session_01TFFm5w2fmMCTU4Tz11P6iD
Deploying with
|
| Status | Name | Latest Commit | Preview URL | Updated (UTC) |
|---|---|---|---|---|
| ✅ Deployment successful! View logs |
grok-install | eed5d3f | Commit Preview URL Branch Preview URL |
May 02 2026, 02:05 PM |
|
anti-slop check flagged 1 marker(s):
These patterns often indicate low-effort AI output. Please review |
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 subscribe to this conversation on GitHub.
Already have an account?
Sign in.
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.
Users had no way to sign out — the session ID lived in localStorage forever and a hard refresh did nothing. After the worker's 2h KV TTL expired, the front-end still acted "signed in" but every API call silently 401'd.
https://claude.ai/code/session_01TFFm5w2fmMCTU4Tz11P6iD
Summary
Type of change
feat!:orfix!:prefix in commit — requires accepted RFC)Checklist
spec/v2.14/spec.mdschemas/v2.14/schema.json) and is Draft 2020-12 validdocs/v2.14/visuals.mddocs/migration/v2.13-to-v2.14.mdif relevantCHANGELOG.mdentry added under## [Unreleased]!validate,ci,anti-slop,markdown-lintRelated issues
Closes #