[PR #1149] [MERGED] feat(email-otp): improve password reset flow #11903

Closed
opened 2026-04-13 08:03:27 -05:00 by GiteaMirror · 0 comments
Owner

📋 Pull Request Information

Original PR: https://github.com/better-auth/better-auth/pull/1149
Author: @jasongerbes
Created: 1/6/2025
Status: Merged
Merged: 8/13/2025
Merged by: @Bekacru

Base: canaryHead: verify-email-otp


📝 Commits (10+)

📊 Changes

3 files changed (+223 additions, -48 deletions)

View changed files

📝 docs/content/docs/concepts/email.mdx (+1 -1)
📝 docs/content/docs/plugins/email-otp.mdx (+97 -39)
📝 packages/better-auth/src/plugins/email-otp/index.ts (+125 -8)

📄 Description

Closes #1148

This PR improves the Email OTP password reset flow by adding an optional checkVerificationOtp() method.

It also includes various doc improvements to make the Email OTP flows easier to understand.


🔄 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/1149 **Author:** [@jasongerbes](https://github.com/jasongerbes) **Created:** 1/6/2025 **Status:** ✅ Merged **Merged:** 8/13/2025 **Merged by:** [@Bekacru](https://github.com/Bekacru) **Base:** `canary` ← **Head:** `verify-email-otp` --- ### 📝 Commits (10+) - [`e4e02ae`](https://github.com/better-auth/better-auth/commit/e4e02ae87bac6fe83b051c4d3357560fa2ddfbfd) Improve OTP password reset flow - [`e31fce9`](https://github.com/better-auth/better-auth/commit/e31fce96f95049c5c3dd27e99b15f8d4a43ade8b) Merge branch 'main' into verify-email-otp - [`0751929`](https://github.com/better-auth/better-auth/commit/075192979c6965d5268b9f7e8badbd146aaf44aa) Merge branch 'main' into pr/1149 - [`cff9566`](https://github.com/better-auth/better-auth/commit/cff95665d0e3db14716265a02dc487cb3ef07ecc) Merge branch 'main' into verify-email-otp - [`4eaad9e`](https://github.com/better-auth/better-auth/commit/4eaad9e61853ee54d3c1d1c9ebee382eae9ec4e7) Doc improvements - [`5d1bfce`](https://github.com/better-auth/better-auth/commit/5d1bfce4760531c98aa0e3d717713b9f0304e285) Logic improvements - [`70caac1`](https://github.com/better-auth/better-auth/commit/70caac1c1a489cb4896a7f3355fdae1d9840ed9b) nit - [`7e78e43`](https://github.com/better-auth/better-auth/commit/7e78e439e271ff3f9568bfd958293c42e6ec8f93) Prevent too many attempts - [`34691d9`](https://github.com/better-auth/better-auth/commit/34691d9fbb16fe2f5928f98d3852e7b9ef4c0491) Changeset - [`250ae8e`](https://github.com/better-auth/better-auth/commit/250ae8e1f0202d53bec986a0b123ea92f993b62b) chore: changeset ### 📊 Changes **3 files changed** (+223 additions, -48 deletions) <details> <summary>View changed files</summary> 📝 `docs/content/docs/concepts/email.mdx` (+1 -1) 📝 `docs/content/docs/plugins/email-otp.mdx` (+97 -39) 📝 `packages/better-auth/src/plugins/email-otp/index.ts` (+125 -8) </details> ### 📄 Description Closes #1148 This PR improves the Email OTP password reset flow by adding an optional `checkVerificationOtp()` method. It also includes various doc improvements to make the Email OTP flows easier to understand. --- <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-13 08:03:27 -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#11903