[GH-ISSUE #1814] Email OTP Plugin - Reset password emailVerified and auto sign in #17561

Closed
opened 2026-04-15 15:43:57 -05:00 by GiteaMirror · 2 comments
Owner

Originally created by @ryanditjia on GitHub (Mar 14, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1814

Is this suited for github?

  • Yes, this is suited for github

When using Email OTP plugin, resetPasswordEmailOTP doesn’t:

  1. Automatically set emailVerified to true (for unverified user)
  2. Automatically sign in

Describe the solution you'd like

Automatically do both of the above (either by default or via a config option).

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 (Mar 14, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1814 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. When using Email OTP plugin, [resetPasswordEmailOTP](https://github.com/better-auth/better-auth/blob/765dd0d68f3cb97329de245a436ebb02f1e0c2ea/packages/better-auth/src/plugins/email-otp/index.ts#L582) doesn’t: 1. Automatically set `emailVerified` to true (for unverified user) 2. Automatically sign in ### Describe the solution you'd like Automatically do both of the above (either by default or via a config option). ### 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 locked label 2026-04-15 15:43:57 -05:00
Author
Owner

@dosubot[bot] commented on GitHub (Jun 13, 2025):

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

Issue Summary:

  • Proposal to enhance resetPasswordEmailOTP function in the Email OTP plugin.
  • Suggests automatic setting of emailVerified to true for unverified users.
  • Recommends enabling automatic sign-in, either by default or via configuration.
  • Aims to streamline the process and reduce the need for custom hooks.
  • No comments or activity have been made on this issue yet.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the better-auth repository by commenting here.
  • If there is no response, the issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

<!-- gh-comment-id:2970840611 --> @dosubot[bot] commented on GitHub (Jun 13, 2025): Hi, @ryanditjia. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog. I'm marking this issue as stale. **Issue Summary:** - Proposal to enhance `resetPasswordEmailOTP` function in the Email OTP plugin. - Suggests automatic setting of `emailVerified` to true for unverified users. - Recommends enabling automatic sign-in, either by default or via configuration. - Aims to streamline the process and reduce the need for custom hooks. - No comments or activity have been made on this issue yet. **Next Steps:** - Please confirm if this issue is still relevant to the latest version of the better-auth repository by commenting here. - If there is no response, the issue will be automatically closed in 7 days. Thank you for your understanding and contribution!
Author
Owner

@andyrue commented on GitHub (Sep 10, 2025):

@Bekacru This is only partially implemented. The other missing piece is the ability to auto sign in after verifying with email otp, just like you can do when verifying with an email verification link.

<!-- gh-comment-id:3275210921 --> @andyrue commented on GitHub (Sep 10, 2025): @Bekacru This is only partially implemented. The other missing piece is the ability to auto sign in after verifying with email otp, just like you can do when verifying with an email verification link.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#17561