fix(auth): defer email verification for v0.1.0 launch
Some checks failed
CI / Tests / 🧪 Test (push) Has been cancelled

RESEND_API_KEY / SMTP credentials not yet configured in production.
Users sign up + land in dashboard immediately, no verification email.

Re-enable requireEmailVerification when email provider is live:
packages/auth/src/server.ts:93
This commit is contained in:
Alejandro Gutiérrez
2026-04-05 15:15:11 +01:00
parent 7ddff92f33
commit 59189febd3

View File

@@ -90,7 +90,9 @@ export const auth = betterAuth({
], ],
emailAndPassword: { emailAndPassword: {
enabled: true, enabled: true,
requireEmailVerification: true, // v0.1.0: email verification DEFERRED until RESEND_API_KEY / SMTP wired.
// Users sign up and land in dashboard immediately. Re-enable when email provider is live.
requireEmailVerification: false,
sendResetPassword: async ({ user, url }, request) => sendResetPassword: async ({ user, url }, request) =>
sendEmail({ sendEmail({
to: user.email, to: user.email,