From 9c8ebbbbb5e6d4715f86117dd5da69e69c8970ae Mon Sep 17 00:00:00 2001 From: Thomas Ruoff Date: Thu, 12 Feb 2026 21:18:13 +0100 Subject: [PATCH] update nodemailer and overwriter vor next-auth --- next-env.d.ts | 2 +- package-lock.json | 11 +++++------ package.json | 9 ++++++--- pages/api/auth/[...nextauth].ts | 2 +- 4 files changed, 13 insertions(+), 11 deletions(-) diff --git a/next-env.d.ts b/next-env.d.ts index 1970904..7996d35 100644 --- a/next-env.d.ts +++ b/next-env.d.ts @@ -1,6 +1,6 @@ /// /// -import "./.next/types/routes.d.ts"; +import "./.next/dev/types/routes.d.ts"; // NOTE: This file should not be edited // see https://nextjs.org/docs/pages/api-reference/config/typescript for more information. diff --git a/package-lock.json b/package-lock.json index 1928796..2749d2a 100644 --- a/package-lock.json +++ b/package-lock.json @@ -14,6 +14,7 @@ "@next-auth/mongodb-adapter": "^1.1.3", "@next/mdx": "^16.1.6", "@types/mdx": "^2.0.11", + "@types/nodemailer": "^7.0.9", "@vercel/analytics": "^1.6.1", "autoprefixer": "^10.4.24", "classnames": "^2.5.1", @@ -24,14 +25,13 @@ "next": "^16.1.6", "next-auth": "^4.24.13", "next-axiom": "^1.10.0", - "nodemailer": "^8.0.0", + "nodemailer": "^8.0.1", "react": "^19.2.4", "react-calendar": "^6.0.0", "react-dom": "^19.2.4" }, "devDependencies": { "@tailwindcss/postcss": "^4.1.18", - "@types/nodemailer": "^7.0.9", "eslint": "^9.39.2", "eslint-config-next": "^16.1.6", "eslint-config-prettier": "^10.1.8", @@ -2616,7 +2616,6 @@ "version": "7.0.9", "resolved": "https://registry.npmjs.org/@types/nodemailer/-/nodemailer-7.0.9.tgz", "integrity": "sha512-vI8oF1M+8JvQhsId0Pc38BdUP2evenIIys7c7p+9OZXSPOH5c1dyINP1jT8xQ2xPuBUXmIC87s+91IZMDjH8Ow==", - "dev": true, "license": "MIT", "dependencies": { "@types/node": "*" @@ -9138,9 +9137,9 @@ "license": "MIT" }, "node_modules/nodemailer": { - "version": "8.0.0", - "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-8.0.0.tgz", - "integrity": "sha512-xvVJf/f0bzmNpnRIbhCp/IKxaHgJ6QynvUbLXzzMRPG3LDQr5oXkYuw4uDFyFYs8cge8agwwrJAXZsd4hhMquw==", + "version": "8.0.1", + "resolved": "https://registry.npmjs.org/nodemailer/-/nodemailer-8.0.1.tgz", + "integrity": "sha512-5kcldIXmaEjZcHR6F28IKGSgpmZHaF1IXLWFTG+Xh3S+Cce4MiakLtWY+PlBU69fLbRa8HlaGIrC/QolUpHkhg==", "license": "MIT-0", "peer": true, "engines": { diff --git a/package.json b/package.json index d0389df..2cf7f95 100644 --- a/package.json +++ b/package.json @@ -17,6 +17,7 @@ "@next-auth/mongodb-adapter": "^1.1.3", "@next/mdx": "^16.1.6", "@types/mdx": "^2.0.11", + "@types/nodemailer": "^7.0.9", "@vercel/analytics": "^1.6.1", "autoprefixer": "^10.4.24", "classnames": "^2.5.1", @@ -27,14 +28,16 @@ "next": "^16.1.6", "next-auth": "^4.24.13", "next-axiom": "^1.10.0", - "nodemailer": "^8.0.0", + "nodemailer": "^8.0.1", "react": "^19.2.4", "react-calendar": "^6.0.0", "react-dom": "^19.2.4" }, + "overrides": { + "nodemailer": "^8.0.1" + }, "devDependencies": { "@tailwindcss/postcss": "^4.1.18", - "@types/nodemailer": "^7.0.9", "eslint": "^9.39.2", "eslint-config-next": "^16.1.6", "eslint-config-prettier": "^10.1.8", @@ -50,4 +53,4 @@ "^.+\\.(ts|tsx)$": "ts-jest" } } -} +} \ No newline at end of file diff --git a/pages/api/auth/[...nextauth].ts b/pages/api/auth/[...nextauth].ts index 084527f..b95ad49 100644 --- a/pages/api/auth/[...nextauth].ts +++ b/pages/api/auth/[...nextauth].ts @@ -46,7 +46,7 @@ export default async function auth(req: NextApiRequest, res: NextApiResponse) { pass: process.env.SMTP_PASS, }, logger: true, - //debug: true, + debug: true, }, from: process.env.FROM_EMAIL, }),