Repository navigation
feat: account page to list and sign out your sessions - #33
Merged
Merged
Conversation
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
force-pushed
the
feat/sessions-section
branch
from
November 12, 2026 10:18
19cbab2 to
5f2e416
Compare
zumbrunn
changed the base branch from
fix/login-keeps-other-sessions-30
to
main
November 12, 2026 10:18
zumbrunn
marked this pull request as ready for review
November 12, 2026 10:20
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 join this conversation on GitHub.
Already have an account?
Sign in to comment
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.
Part of duneorg/dune#155. Rebased onto main (#32 and #34 are in).
New
/admin/accountpage (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_revokedaudit 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-apiis added tominimumDependencyAge.exclude; the@dune/corepin stays0.36, which covers 0.36.1. Against an older coresessions.canListis 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