[PR #5794] fix(email-otp): prevent duplicate verification emails when override is enabled #14475

Closed
opened 2026-04-13 09:29:38 -05:00 by GiteaMirror · 0 comments
Owner

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

State: closed
Merged: Yes


Summary by cubic

Prevents duplicate verification emails on sign-up when email OTP override is enabled. Users now receive a single verification email from the override, not both.

  • Bug Fixes
    • Disable default send-on-sign-up when overrideDefaultEmailVerification is true.
    • Add test to confirm sendVerificationOTP is called once with the correct payload.

Written for commit 14de5a80dc. Summary will update automatically on new commits.

**Original Pull Request:** https://github.com/better-auth/better-auth/pull/5794 **State:** closed **Merged:** Yes --- <!-- This is an auto-generated description by cubic. --> ## Summary by cubic Prevents duplicate verification emails on sign-up when email OTP override is enabled. Users now receive a single verification email from the override, not both. - **Bug Fixes** - Disable default send-on-sign-up when overrideDefaultEmailVerification is true. - Add test to confirm sendVerificationOTP is called once with the correct payload. <sup>Written for commit 14de5a80dc949b08e7ecfedaa8d630bf836a4a71. Summary will update automatically on new commits.</sup> <!-- End of auto-generated description by cubic. -->
GiteaMirror added the pull-request label 2026-04-13 09:29:38 -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#14475