From b2598d7fcf4cd9171e395fa7cf545e0f61718c90 Mon Sep 17 00:00:00 2001 From: shadcn Date: Mon, 24 Apr 2023 20:24:26 +0400 Subject: [PATCH] fix: next-auth --- lib/auth.ts | 3 --- package.json | 2 +- pnpm-lock.yaml | 14 +++++++------- 3 files changed, 8 insertions(+), 11 deletions(-) diff --git a/lib/auth.ts b/lib/auth.ts index d551ab4..885adf5 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -15,7 +15,6 @@ export const authOptions: NextAuthOptions = { // This is a temporary fix for prisma client. // @see https://github.com/prisma/prisma/issues/16117 adapter: PrismaAdapter(db as any), - debug: true, session: { strategy: "jwt", }, @@ -64,8 +63,6 @@ export const authOptions: NextAuthOptions = { ], }) - console.log({ result }) - if (result.ErrorCode) { throw new Error(result.Message) } diff --git a/package.json b/package.json index 0f5fdcb..c2ef151 100644 --- a/package.json +++ b/package.json @@ -67,7 +67,7 @@ "date-fns": "^2.29.3", "lucide-react": "^0.92.0", "next": "^13.3.1", - "next-auth": "^4.22.1", + "next-auth": "4.22.0", "next-contentlayer": "^0.3.1", "next-themes": "^0.2.1", "nodemailer": "^6.9.1", diff --git a/pnpm-lock.yaml b/pnpm-lock.yaml index f30a788..ae2af6c 100644 --- a/pnpm-lock.yaml +++ b/pnpm-lock.yaml @@ -33,7 +33,7 @@ dependencies: version: 3.1.0(react-hook-form@7.43.9) '@next-auth/prisma-adapter': specifier: ^1.0.6 - version: 1.0.6(@prisma/client@4.13.0)(next-auth@4.22.1) + version: 1.0.6(@prisma/client@4.13.0)(next-auth@4.22.0) '@prisma/client': specifier: ^4.13.0 version: 4.13.0(prisma@4.13.0) @@ -155,8 +155,8 @@ dependencies: specifier: ^13.3.1 version: 13.3.1(@babel/core@7.21.4)(@opentelemetry/api@1.1.0)(react-dom@18.2.0)(react@18.2.0) next-auth: - specifier: ^4.22.1 - version: 4.22.1(next@13.3.1)(nodemailer@6.9.1)(react-dom@18.2.0)(react@18.2.0) + specifier: 4.22.0 + version: 4.22.0(next@13.3.1)(nodemailer@6.9.1)(react-dom@18.2.0)(react@18.2.0) next-contentlayer: specifier: ^0.3.1 version: 0.3.1(esbuild@0.17.18)(next@13.3.1)(react-dom@18.2.0)(react@18.2.0) @@ -1351,14 +1351,14 @@ packages: - supports-color dev: false - /@next-auth/prisma-adapter@1.0.6(@prisma/client@4.13.0)(next-auth@4.22.1): + /@next-auth/prisma-adapter@1.0.6(@prisma/client@4.13.0)(next-auth@4.22.0): resolution: {integrity: sha512-Z7agwfSZEeEcqKqrnisBun7VndRPshd6vyDsoRU68MXbkui8storkHgvN2hnNDrqr/hSCF9aRn56a1qpihaB4A==} peerDependencies: '@prisma/client': '>=2.26.0 || >=3' next-auth: ^4 dependencies: '@prisma/client': 4.13.0(prisma@4.13.0) - next-auth: 4.22.1(next@13.3.1)(nodemailer@6.9.1)(react-dom@18.2.0)(react@18.2.0) + next-auth: 4.22.0(next@13.3.1)(nodemailer@6.9.1)(react-dom@18.2.0)(react@18.2.0) dev: false /@next/env@13.3.1: @@ -5999,8 +5999,8 @@ packages: /natural-compare@1.4.0: resolution: {integrity: sha512-OWND8ei3VtNC9h7V60qff3SVobHr996CTwgxubgyQYEpg290h9J0buyECNNJexkFm5sOajh5G116RYA1c8ZMSw==} - /next-auth@4.22.1(next@13.3.1)(nodemailer@6.9.1)(react-dom@18.2.0)(react@18.2.0): - resolution: {integrity: sha512-NTR3f6W7/AWXKw8GSsgSyQcDW6jkslZLH8AiZa5PQ09w1kR8uHtR9rez/E9gAq/o17+p0JYHE8QjF3RoniiObA==} + /next-auth@4.22.0(next@13.3.1)(nodemailer@6.9.1)(react-dom@18.2.0)(react@18.2.0): + resolution: {integrity: sha512-08+kjnDoE7aQ52O996x6cwA3ffc2CbHIkrCgLYhbE+aDIJBKI0oA9UbIEIe19/+ODYJgpAHHOtJx4izmsgaVag==} peerDependencies: next: ^12.2.5 || ^13 nodemailer: ^6.6.5