From 8374a983b11f773e917c6a8b7492266a2b10a479 Mon Sep 17 00:00:00 2001 From: Hery Nirintsoa Date: Wed, 16 Oct 2024 10:14:04 +0300 Subject: [PATCH] fix: next auth email provider config --- src/app/api/auth/[...nextauth]/options.ts | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/app/api/auth/[...nextauth]/options.ts b/src/app/api/auth/[...nextauth]/options.ts index 03a0d0a..3b2365b 100644 --- a/src/app/api/auth/[...nextauth]/options.ts +++ b/src/app/api/auth/[...nextauth]/options.ts @@ -14,7 +14,7 @@ export const authOptions: AuthOptions = { EmailProvider({ server: { host: process.env.SMTP_HOST, - port: process.env.SMTP_PORT, + port: +(process.env.SMTP_PORT || 3000), secure: process.env.SMTP_SECURE !== "false", auth: { user: process.env.SMTP_USER,