[PR #8551] docs: add revokeSessionsOnPasswordReset to password reset section #16302

Open
opened 2026-04-13 10:29:17 -05:00 by GiteaMirror · 0 comments
Owner

Original Pull Request: https://github.com/better-auth/better-auth/pull/8551

State: open
Merged: No


The revokeSessionsOnPasswordReset option was only referenced in the configuration table at the bottom of the Email & Password page. It was not mentioned in the Request Password Reset section where developers are most likely reading when implementing the flow.

This PR adds:

  • revokeSessionsOnPasswordReset: true to the server config code example in the password reset section

Without this option enabled, bad session can persist even after the legitimate user resets their password, which is a security concern and should be surfaced early in the docs.


Summary by cubic

Add a new “Revoking Sessions on Password Reset” subsection to the Email & Password docs. It clarifies that sessions aren’t revoked by default and shows how to enable revokeSessionsOnPasswordReset: true in the server config to revoke all sessions after a reset.

Written for commit 37e831be7c. Summary will update on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/8551 **State:** open **Merged:** No --- The `revokeSessionsOnPasswordReset` option was only referenced in the configuration table at the bottom of the Email & Password page. It was not mentioned in the Request Password Reset section where developers are most likely reading when implementing the flow. This PR adds: - `revokeSessionsOnPasswordReset: true` to the server config code example in the password reset section Without this option enabled, bad session can persist even after the legitimate user resets their password, which is a security concern and should be surfaced early in the docs. <!-- This is an auto-generated description by cubic. --> --- ## Summary by cubic Add a new “Revoking Sessions on Password Reset” subsection to the Email & Password docs. It clarifies that sessions aren’t revoked by default and shows how to enable `revokeSessionsOnPasswordReset: true` in the server config to revoke all sessions after a reset. <sup>Written for commit 37e831be7cb7c86fdf2c02252bf0d44da87db15a. Summary will update on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 10:29:17 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#16302