[GH-ISSUE #563] EmailOTP plugin not sending verification email on signup #8321

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

Originally created by @dhatGuy on GitHub (Nov 17, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/563

Describe the bug
Setting sendVerificationOnSignUp to true doesn't work

To Reproduce
Steps to reproduce the behavior:

	emailOTP({
      otpLength: 4,
      expiresIn: 60 * 60 * 1000,
      sendVerificationOnSignUp: true,
      disableSignUp: true,
      async sendVerificationOTP({ email, otp, type }) {
        if (type === "email-verification")
          await MailService.welcomeMail(email, Number(otp));
      },
	}),

Expected behavior
Send verification email on sign up

Originally created by @dhatGuy on GitHub (Nov 17, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/563 **Describe the bug** Setting `sendVerificationOnSignUp` to true doesn't work **To Reproduce** Steps to reproduce the behavior: ``` emailOTP({ otpLength: 4, expiresIn: 60 * 60 * 1000, sendVerificationOnSignUp: true, disableSignUp: true, async sendVerificationOTP({ email, otp, type }) { if (type === "email-verification") await MailService.welcomeMail(email, Number(otp)); }, }), ``` **Expected behavior** Send verification email on sign up
GiteaMirror added the locked label 2026-04-13 03:23:25 -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#8321