[GH-ISSUE #6130] Automatically sign in after reset password #19058

Closed
opened 2026-04-15 17:50:32 -05:00 by GiteaMirror · 5 comments
Owner

Originally created by @ryanditjia on GitHub (Nov 20, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/6130

Is this suited for github?

  • Yes, this is suited for github

/reset-password and /email-otp/reset-password currently don’t automatically sign the user in. It’s better UX if they’re auto signed-in on success.

Describe the solution you'd like

Automatically sign the user in after a successful reset password.

Describe alternatives you've considered

Creating our own hooks, but it seems to make more sense if done as part of core.

Additional context

No response

Originally created by @ryanditjia on GitHub (Nov 20, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/6130 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. [`/reset-password`](https://github.com/better-auth/better-auth/blob/canary/packages/better-auth/src/api/routes/reset-password.ts#L234) and [`/email-otp/reset-password`](https://github.com/better-auth/better-auth/blob/canary/packages/better-auth/src/plugins/email-otp/index.ts#L1021) currently don’t automatically sign the user in. It’s better UX if they’re auto signed-in on success. ### Describe the solution you'd like Automatically sign the user in after a successful reset password. ### Describe alternatives you've considered Creating our own hooks, but it seems to make more sense if done as part of core. ### Additional context _No response_
GiteaMirror added the lockedenhancement labels 2026-04-15 17:50:33 -05:00
Author
Owner

@better-auth-agent[bot] commented on GitHub (Nov 20, 2025):

Thanks for raising this! We understand that automatically signing in a user after a successful password reset would improve the user experience. Currently, the /reset-password and /email-otp/reset-password endpoints don’t provide automatic sign in behavior by default. You can work around this by adding a custom hook to trigger sign in immediately after the reset succeeds. That said, there is interest in making this a core feature to keep the auth flow consistent, and your feedback helps reinforce that need [1].

Would you be interested in testing a custom implementation or discussing potential configuration options for this feature? tag @better-auth-agent if you would like an answer from the Agent

DiagramDiscordGitHub

Diagram Join Star

<!-- gh-comment-id:3558262002 --> @better-auth-agent[bot] commented on GitHub (Nov 20, 2025): Thanks for raising this! We understand that automatically signing in a user after a successful password reset would improve the user experience. Currently, the /reset-password and /email-otp/reset-password endpoints don’t provide automatic sign in behavior by default. You can work around this by adding a custom hook to trigger sign in immediately after the reset succeeds. That said, there is interest in making this a core feature to keep the auth flow consistent, and your feedback helps reinforce that need [[1]](https://www.better-auth.com/docs/reference/contributing). Would you be interested in testing a custom implementation or discussing potential configuration options for this feature? tag @better-auth-agent if you would like an answer from the Agent <!-- bot:webhook reply v1 --> [Diagram](https://repodiagrams.s3.eu-north-1.amazonaws.com/better-auth_ultra_detailed_interactive.html) • [Discord](https://discord.gg/better-auth) • [GitHub](https://github.com/better-auth/better-auth) [![Diagram](https://img.shields.io/badge/Diagram-2b3137?style=flat-square)](https://repodiagrams.s3.eu-north-1.amazonaws.com/better-auth_ultra_detailed_interactive.html) [![Join](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&style=flat-square)](https://discord.gg/better-auth) [![Star](https://img.shields.io/badge/star-181717?logo=github&logoColor=white&style=flat-square)](https://github.com/better-auth/better-auth)
Author
Owner

@better-auth-agent[bot] commented on GitHub (Nov 21, 2025):

Thanks for the detailed issue report! We understand that automatically signing in after a successful reset password would provide a better user experience than manually triggering sign-in via hooks. Our team has already noted this as an enhancement opportunity and is considering refining the flow to auto-sign users once their password is successfully updated, as highlighted in the current discussion. Could you share any specific conditions or security considerations you’d like to see implemented for this auto sign-in process? Tag @better-auth-agent if you would like an answer from the Agent.

DiagramDiscordGitHub

Diagram Join Star

<!-- gh-comment-id:3561760863 --> @better-auth-agent[bot] commented on GitHub (Nov 21, 2025): Thanks for the detailed issue report! We understand that automatically signing in after a successful reset password would provide a better user experience than manually triggering sign-in via hooks. Our team has already noted this as an enhancement opportunity and is considering refining the flow to auto-sign users once their password is successfully updated, as highlighted in the current discussion. Could you share any specific conditions or security considerations you’d like to see implemented for this auto sign-in process? Tag @better-auth-agent if you would like an answer from the Agent. <!-- bot:webhook reply v1 --> [Diagram](https://repodiagrams.s3.eu-north-1.amazonaws.com/better-auth_ultra_detailed_interactive.html) • [Discord](https://discord.gg/better-auth) • [GitHub](https://github.com/better-auth/better-auth) [![Diagram](https://img.shields.io/badge/Diagram-2b3137?style=flat-square)](https://repodiagrams.s3.eu-north-1.amazonaws.com/better-auth_ultra_detailed_interactive.html) [![Join](https://img.shields.io/badge/join-5865F2?logo=discord&logoColor=white&style=flat-square)](https://discord.gg/better-auth) [![Star](https://img.shields.io/badge/star-181717?logo=github&logoColor=white&style=flat-square)](https://github.com/better-auth/better-auth)
Author
Owner

@Ridhim-RR commented on GitHub (Nov 21, 2025):

@himself65 should we implement this?

<!-- gh-comment-id:3561784157 --> @Ridhim-RR commented on GitHub (Nov 21, 2025): @himself65 should we implement this?
Author
Owner

@gautamkumar1 commented on GitHub (Nov 21, 2025):

working on this..

<!-- gh-comment-id:3561936806 --> @gautamkumar1 commented on GitHub (Nov 21, 2025): working on this..
Author
Owner

@dosubot[bot] commented on GitHub (Feb 20, 2026):

Hi, @ryanditjia. I'm Dosu, and I'm helping the better-auth team manage their backlog and am marking this issue as stale.

Issue Summary:

  • You requested that password reset endpoints automatically sign users in after a successful reset to improve user experience.
  • The maintainers acknowledged the request and showed interest in making this a core feature.
  • Contributor gautamkumar1 is working on implementing this enhancement.
  • There has been some discussion about whether to proceed with the implementation.
  • The issue remains unresolved and open for further input.

Next Steps:

  • Please let me know if this feature is still relevant to the latest version of better-auth by commenting on this issue.
  • If I do not hear back within 7 days, the issue will be automatically closed.

Thank you for your understanding and contribution!

<!-- gh-comment-id:3935799579 --> @dosubot[bot] commented on GitHub (Feb 20, 2026): Hi, @ryanditjia. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog and am marking this issue as stale. **Issue Summary:** - You requested that password reset endpoints automatically sign users in after a successful reset to improve user experience. - The maintainers acknowledged the request and showed interest in making this a core feature. - Contributor gautamkumar1 is working on implementing this enhancement. - There has been some discussion about whether to proceed with the implementation. - The issue remains unresolved and open for further input. **Next Steps:** - Please let me know if this feature is still relevant to the latest version of better-auth by commenting on this issue. - If I do not hear back within 7 days, the issue will be automatically closed. Thank you for your understanding and contribution!
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#19058