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

- switch email provider from resend (unused) to postmark (creds available)
- re-enable requireEmailVerification now that email path works
- env vars POSTMARK_API_KEY + EMAIL_FROM must be set in Coolify
This commit is contained in:
Alejandro Gutiérrez
2026-04-05 15:18:52 +01:00
parent 1972f97a3a
commit 88dca92b55
2 changed files with 2 additions and 4 deletions

View File

@@ -90,9 +90,7 @@ export const auth = betterAuth({
],
emailAndPassword: {
enabled: 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,
requireEmailVerification: true,
sendResetPassword: async ({ user, url }, request) =>
sendEmail({
to: user.email,