[GH-ISSUE #236] Since Version v0.4.12 sendVerificationEmail() doesnt work #8183

Closed
opened 2026-04-13 03:17:11 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @GregorWedlich on GitHub (Oct 19, 2024).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/236

Describe the bug

  emailAndPassword: {
    enabled: true,
    async sendVerificationEmail(url, user) {
      console.log("Sending verification email to", user.email);
      await sendVerificationEmailNodemailer(user.email, url);
    },
    sendEmailVerificationOnSignUp: true,
  },
  • Some type errors in the given parameters (url, user).

Submission of the form:

 ERROR   Verification email isn't enabled. Pass sendVerificationEmail in emailAndPassword options to enable it.                                                                            Better Auth

 ⨯ [APIError [BetterCallAPIError]: API Error: BAD_REQUEST Verification email isn't enabled] {
  status: 'BAD_REQUEST',
  headers: Headers {},
  body: { message: "Verification email isn't enabled" },
  digest: '3197240321',
  [cause]: { message: "Verification email isn't enabled" }
}

To Reproduce
Steps to reproduce the behavior:

Step back to previouse version v0.4.12-beta.7, it works.

Originally created by @GregorWedlich on GitHub (Oct 19, 2024). Original GitHub issue: https://github.com/better-auth/better-auth/issues/236 **Describe the bug** ```typescript emailAndPassword: { enabled: true, async sendVerificationEmail(url, user) { console.log("Sending verification email to", user.email); await sendVerificationEmailNodemailer(user.email, url); }, sendEmailVerificationOnSignUp: true, }, ``` - Some type errors in the given parameters (url, user). Submission of the form: ```bash ERROR Verification email isn't enabled. Pass sendVerificationEmail in emailAndPassword options to enable it. Better Auth ⨯ [APIError [BetterCallAPIError]: API Error: BAD_REQUEST Verification email isn't enabled] { status: 'BAD_REQUEST', headers: Headers {}, body: { message: "Verification email isn't enabled" }, digest: '3197240321', [cause]: { message: "Verification email isn't enabled" } } ``` **To Reproduce** Steps to reproduce the behavior: Step back to previouse version v0.4.12-beta.7, it works.
GiteaMirror added the locked label 2026-04-13 03:17:11 -05:00
Author
Owner

@Bekacru commented on GitHub (Oct 19, 2024):

the option is moved from emailAndPassword to emailVerification

check this

https://www.better-auth.com/docs/concepts/email#email-verification

<!-- gh-comment-id:2423692137 --> @Bekacru commented on GitHub (Oct 19, 2024): the option is moved from `emailAndPassword` to `emailVerification` check this https://www.better-auth.com/docs/concepts/email#email-verification
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8183