Skip to content
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
AgentMindCloud merged 1 commit into
mainfrom
claude/fix-minting-process-eiW1Z
May 2, 2026
Merged

add Sign Out + auto-clear stale sessions#14
AgentMindCloud merged 1 commit into
mainfrom
claude/fix-minting-process-eiW1Z

Conversation

@AgentMindCloud

Copy link
Copy Markdown
Owner

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

Summary

Type of change

  • Bug fix (non-breaking)
  • New feature / enhancement (non-breaking)
  • Breaking change (feat!: or fix!: prefix in commit — requires accepted RFC)
  • Spec change (v2.14 additive only — breaking changes require RFC)
  • Visuals field addition or refinement (v2.14 visuals block)
  • Documentation / examples only
  • CI / tooling / hygiene

Checklist

  • Spec changes documented under spec/v2.14/spec.md
  • JSON Schema updated (schemas/v2.14/schema.json) and is Draft 2020-12 valid
  • Back-compat preserved: every v2.13 example still validates under v2.14
  • Examples updated to reflect any new fields
  • Visuals fields documented in docs/v2.14/visuals.md
  • Migration notes updated in docs/migration/v2.13-to-v2.14.md if relevant
  • CHANGELOG.md entry added under ## [Unreleased]
  • Breaking changes flagged in PR title with !
  • Linked to RFC issue (spec changes only): #
  • CI passes: validate, ci, anti-slop, markdown-lint
  • Landing page smoke-tested locally if HTML/CSS/JS changed
  • Code of Conduct respected

Related issues

Closes #

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
@cloudflare-workers-and-pages

Copy link
Copy Markdown

Deploying with  Cloudflare Workers  Cloudflare Workers

The latest updates on your project. Learn more about integrating Git with Workers.

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

@github-actions

github-actions Bot commented May 2, 2026

Copy link
Copy Markdown

anti-slop check flagged 1 marker(s):

  • excessive emoji/symbol runs — 15 lines

These patterns often indicate low-effort AI output. Please review
and remove or justify each hit before merge. This check is
advisory — it does not block the PR.

@AgentMindCloud
AgentMindCloud merged commit be77417 into main May 2, 2026
15 checks passed
@AgentMindCloud
AgentMindCloud deleted the claude/fix-minting-process-eiW1Z branch May 7, 2026 08:26
Sign up for free to subscribe to this conversation on GitHub. Already have an account? Sign in.

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants