Skip to content

feat: account page to list and sign out your sessions - #33

Merged
zumbrunn merged 2 commits into
mainfrom
feat/sessions-section
Nov 12, 2026
Merged

zumbrunn merged 2 commits into
mainfrom
feat/sessions-section

Conversation

@zumbrunn

@zumbrunn zumbrunn commented Nov 11, 2026 •

Copy link
Copy Markdown
Member

Part of duneorg/dune#155. Rebased onto main (#32 and #34 are in).

New /admin/account page (the top-bar user name links to it): lists your live sessions (signed in, expires, IP), marks the current one, per-session Sign out, and Sign out all other sessions. Only the caller's own sessions; auth.sessions_revoked audit event; CSRF-checked.

Session ids never reach the page. The id is the cookie credential, so forms carry sessionHandle(id) (first 8 bytes of its SHA-256) and the server re-finds the session among the user's own sessions. A handle matching nothing, another user's session or the current session revokes nothing.

Needs core 0.36.1 (duneorg/dune#156) and plugin-api 1.1 (both published). @dune/plugin-api is added to minimumDependencyAge.exclude; the @dune/core pin stays 0.36, which covers 0.36.1. Against an older core sessions.canList is false and the page says so rather than listing.

Since #32 stopped login from ending other sessions, this page is how you end a session you suspect is stolen; the CHANGELOG says so.

Tests: handle-not-id in rendered HTML, own-sessions-only, revoke one / others, cross-origin rejected, old-core message.

🤖 Generated with Claude Code

zumbrunn and others added 2 commits November 12, 2026 11:18
Part of duneorg/dune#155

Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
Co-Authored-By: Claude Sonnet 5.5 <noreply@anthropic.com>
@zumbrunn
zumbrunn force-pushed the feat/sessions-section branch from 19cbab2 to 5f2e416 Compare November 12, 2026 10:18
@zumbrunn
zumbrunn changed the base branch from fix/login-keeps-other-sessions-30 to main November 12, 2026 10:18
@zumbrunn
zumbrunn marked this pull request as ready for review November 12, 2026 10:20
@zumbrunn
zumbrunn merged commit b70f578 into main Nov 12, 2026
1 check passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

1 participant