Skip to content

Session revocation support for password reset - #775

Merged
dowski merged 1 commit into
rebootfrom
dowski/revoke-sessions-on-password-reset
Oct 28, 2026
Merged

dowski merged 1 commit into
rebootfrom
dowski/revoke-sessions-on-password-reset

Conversation

@dowski

@dowski dowski commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator

When a user resets their password, there's now optional support for revoking their other sessions. An app can choose to present a UI to give the user the choice or set its own value.

@vercel

vercel Bot commented Oct 21, 2026 •

Copy link
Copy Markdown

The latest updates on your projects. Learn more about Vercel for GitHub.

Project Deployment Actions Updated
auth-v2 Ready Ready Preview Oct 28, 2026 1:52pm UTC
1 Skipped Deployment
Project Deployment Actions Updated
convex-auth-docs Ignored Ignored Oct 28, 2026 1:52pm UTC

Request Review

dowski commented Oct 21, 2026 •

Copy link
Copy Markdown
Collaborator Author

@pkg-pr-new

pkg-pr-new Bot commented Oct 21, 2026 •

Copy link
Copy Markdown
npm i https://pkg.pr.new/@convex-dev/auth@775

commit: ae2305e

@dowski
dowski force-pushed the dowski/revoke-sessions-on-password-reset branch from fd53cdb to e748bfc Compare October 26, 2026 23:27
@dowski
dowski force-pushed the dowski/revoke-sessions-on-password-reset branch from e748bfc to d83ad7c Compare October 26, 2026 23:44
@dowski
dowski force-pushed the dowski/revoke-session-handle branch from 201b3bd to 957d13b Compare October 26, 2026 23:44
@dowski
dowski force-pushed the dowski/revoke-session-handle branch 2 times, most recently from 520e0ba to 2a03112 Compare October 26, 2026 23:50
@dowski
dowski force-pushed the dowski/revoke-sessions-on-password-reset branch from d83ad7c to 2a88e48 Compare October 26, 2026 23:51
@dowski
dowski force-pushed the dowski/revoke-sessions-on-password-reset branch from 2a88e48 to a07384a Compare October 27, 2026 14:51
@dowski
dowski force-pushed the dowski/revoke-session-handle branch from 2a03112 to adf014c Compare October 27, 2026 14:51
@dowski
dowski changed the base branch from dowski/revoke-session-handle to graphite-base/775 October 27, 2026 15:00
@dowski
dowski force-pushed the dowski/revoke-sessions-on-password-reset branch from a07384a to 914dafc Compare October 27, 2026 15:01
@dowski
dowski force-pushed the graphite-base/775 branch from adf014c to 09915cc Compare October 27, 2026 15:01
@cursor
cursor Bot changed the base branch from graphite-base/775 to reboot October 27, 2026 15:02
@dowski
dowski force-pushed the dowski/revoke-sessions-on-password-reset branch from 914dafc to dbe6bb8 Compare October 27, 2026 15:02
@dowski
dowski force-pushed the dowski/revoke-sessions-on-password-reset branch from dbe6bb8 to da882d6 Compare October 27, 2026 15:32
@dowski
dowski requested a review from Nicolapps October 27, 2026 15:34
args: {
currentPassword: v.string(),
newPassword: v.string(),
signOutOtherSessions: v.optional(v.boolean()),

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What do you think about making this default to false?

Pilcrow says the following about this:

Whether auth sessions should be invalidated after a user updates their password is a separate discussion. My personal view is that it's a good idea to ask users whether they want to sign out of all devices immediately after changing their password, but it shouldn't be mandatory. Users often update their password because they've forgotten it or simply as a preventative measure. It's also uncommon to invalidate existing sessions when passkeys are registered or removed. If you do choose to invalidate all sessions after a password change, always make that clear so users aren't left guessing.

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good, done.

font-size: 1rem;
}

input[type="checkbox"] {

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

What is this style doing? Fixing the margins?

Copy link
Copy Markdown
Collaborator Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

The styles above for input make it a block element and set widths. This makes it so the checkbox and its label can be on the same line beside each other and not horizontally centered.

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Sounds good! Thanks

This branch was successfully deployed

1 active deployment
Preview – auth-v2 — ae2305ef Deployed Oct 28, 2026 by vercel[bot]
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.

2 participants