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

Open
opened 2026-04-15 22:39:15 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/8551
Author: @jjluzgin
Created: 3/11/2026
Status: 🔄 Open

Base: mainHead: docs/revoke-sessions-on-password-reset


📝 Commits (1)

  • 37e831b docs: add revokeSessionsOnPasswordReset to password reset section

📊 Changes

1 file changed (+16 additions, -0 deletions)

View changed files

📝 docs/content/docs/authentication/email-password.mdx (+16 -0)

📄 Description

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.


🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.

## 📋 Pull Request Information **Original PR:** https://github.com/better-auth/better-auth/pull/8551 **Author:** [@jjluzgin](https://github.com/jjluzgin) **Created:** 3/11/2026 **Status:** 🔄 Open **Base:** `main` ← **Head:** `docs/revoke-sessions-on-password-reset` --- ### 📝 Commits (1) - [`37e831b`](https://github.com/better-auth/better-auth/commit/37e831be7cb7c86fdf2c02252bf0d44da87db15a) docs: add revokeSessionsOnPasswordReset to password reset section ### 📊 Changes **1 file changed** (+16 additions, -0 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/authentication/email-password.mdx` (+16 -0) </details> ### 📄 Description 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. --> --- <sub>🔄 This issue represents a GitHub Pull Request. It cannot be merged through Gitea due to API limitations.</sub>
GiteaMirror added the pull-request label 2026-04-15 22:39:15 -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#24956