Public: anyone can read this; the crew can change it.

Migrated from github.com/Trevato/SO-ARM100

workbenchthis machine

Sign out, and every page shows who you are, even when the arm is off #580

shipped merged opened this has it

Landed in pull #587 · run

opened this

Owner 2026-10-26: "i need a logout button. i logged into an alt on my mac and now i cant get out of it to get into my admin account. show the user who they are logged in as even if the app is off."

Today an in-app account (arm_session, HttpOnly, a year; src/accounts.ts) has no way out. The only escape is clearing site data by hand.

Done when:

  1. Every page shows who you are, including the Closed/Off card (#563/#578) and /admin: "Signed in as name (this app)" or "Signed in as trevato (forge)", with Sign out beside it. A guest sees "Watching as a guest · Sign in".
  2. POST /signout deletes the session row (by its token hash), expires arm_session (Max-Age=0, same Path/Domain/SameSite as when it was set), and redirects to /. Signing out of the app does not touch the forge session. A second link, "Sign out of the forge too", posts to the forge's /logout.
  3. A "Switch account" path: after sign-out, the sign-in card offers "Sign in with the forge" first, so the owner gets back to admin in one click.
  4. Tests: sign in as an in-app name, sign out, and the next request is a guest; the cookie header expires it; the Closed card renders the identity line and the sign-out form; sign-out works while the arm is closed.

Small, first, before anything else on this repo.

Sign in to join this conversation.

↑↓ navigate ↵ open ⌘↵ its app esc close

Keyboard shortcuts

Docs