feat(auth): enable postmark email verification for v0.1.0 launch
Some checks failed
CI / Tests / 🧪 Test (push) Has been cancelled
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:
@@ -90,9 +90,7 @@ export const auth = betterAuth({
|
|||||||
],
|
],
|
||||||
emailAndPassword: {
|
emailAndPassword: {
|
||||||
enabled: true,
|
enabled: true,
|
||||||
// v0.1.0: email verification DEFERRED until RESEND_API_KEY / SMTP wired.
|
requireEmailVerification: true,
|
||||||
// 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,
|
||||||
|
|||||||
@@ -1 +1 @@
|
|||||||
export { send } from "./resend";
|
export { send } from "./postmark";
|
||||||
|
|||||||
Reference in New Issue
Block a user