signUp on server-side not sending sendVerificationEmail()
Since the changes in v0.4.12 (though I’m not 100% sure), sendVerificationEmail() is no longer triggered automatically when I call auth.api.signUpEmail().
Next.js Server-Action:
auth.ts:
Yes, I can manually call sendVerificationEmail() in my server action but I don’t think that’s the intended way to handle this:
5 Replies
Unknown User•5mo ago
Message Not Public
Sign In & Join Server To View
Ok, I think this is important information because the demo site uses the client library.
The demo works, but it's not sending on signup because the auth config hasn't been updated since the last changes. But @future42 try it with the latest version and let me know if it's still an issue.
this could be cause of resend, I'll check.
Nope. With “better-auth”: “^0.5.2-beta.7”, it doesn't work.
Ok we can close this issue.
I have written the “Up” in lower case for sendOnSignUp: true.
The Docs are wrong:
https://www.better-auth.com/docs/concepts/email#1-during-sign-up
i create an PR on Github: Fix typo: corrected capitalization issue. #263
Email | Better Auth
Learn how to use email with Better Auth.