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:
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".
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.
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.
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.
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:
POST /signoutdeletes the session row (by its token hash), expiresarm_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.Small, first, before anything else on this repo.