Repository navigation
Session revocation support for password reset - #775
Conversation
|
The latest updates on your projects. Learn more about Vercel for GitHub.
1 Skipped Deployment
|
This stack of pull requests is managed by Graphite. Learn more about stacking. |
d5cea90 to
1eee202
Compare
1053d64 to
3f34310
Compare
3f34310 to
ff30c70
Compare
1eee202 to
cfcad24
Compare
2f66a76 to
05b232b
Compare
cfcad24 to
4d4fd08
Compare
05b232b to
563beea
Compare
commit: |
563beea to
84b13df
Compare
4d4fd08 to
bc370db
Compare
84b13df to
a0050d9
Compare
bc370db to
4257917
Compare
4257917 to
2cb5e9a
Compare
fd53cdb to
e748bfc
Compare
e748bfc to
d83ad7c
Compare
201b3bd to
957d13b
Compare
520e0ba to
2a03112
Compare
d83ad7c to
2a88e48
Compare
2a88e48 to
a07384a
Compare
2a03112 to
adf014c
Compare
a07384a to
914dafc
Compare
adf014c to
09915cc
Compare
914dafc to
dbe6bb8
Compare
dbe6bb8 to
da882d6
Compare
| args: { | ||
| currentPassword: v.string(), | ||
| newPassword: v.string(), | ||
| signOutOtherSessions: v.optional(v.boolean()), |
There was a problem hiding this comment.
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.
| font-size: 1rem; | ||
| } | ||
|
|
||
| input[type="checkbox"] { |
There was a problem hiding this comment.
What is this style doing? Fixing the margins?
There was a problem hiding this comment.
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.
da882d6 to
ae2305e
Compare

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.