[GH-ISSUE #1780] Add revokeSessions to authClient.resetPassword #8915

Closed
opened 2026-04-13 04:09:48 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @DimitarY on GitHub (Mar 11, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1780

Is this suited for github?

  • Yes, this is suited for github

authClient.resetPassword does not support revoking the sessions on password reset, and when users reset their password, they are still signed on other devices.

Describe the solution you'd like

Add revokeSessions to authClient.resetPassword

Describe alternatives you've considered

Deleting the session directly from database using trigger

Additional context

No response

Originally created by @DimitarY on GitHub (Mar 11, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1780 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. `authClient.resetPassword` does not support revoking the sessions on password reset, and when users reset their password, they are still signed on other devices. ### Describe the solution you'd like Add `revokeSessions` to `authClient.resetPassword` ### Describe alternatives you've considered Deleting the session directly from database using trigger ### Additional context _No response_
GiteaMirror added the locked label 2026-04-13 04:09:48 -05:00
Author
Owner

@John62800 commented on GitHub (Mar 16, 2025):

Yes, please add it.
On the server, it’s the same:
auth.api.resetPassword()

This is crucial, especially when someone resets their password, and another person is logged in with the old session. It could potentially lead to a bad situation

<!-- gh-comment-id:2727334492 --> @John62800 commented on GitHub (Mar 16, 2025): Yes, please add it. On the server, it’s the same: `auth.api.resetPassword()` This is crucial, especially when someone resets their password, and another person is logged in with the old session. It could potentially lead to a bad situation
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8915