fix: next-auth

This commit is contained in:
shadcn 2023-04-24 20:24:26 +04:00
parent a019b7ab33
commit b2598d7fcf
3 changed files with 8 additions and 11 deletions

View file

@ -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)
}

View file

@ -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",

View file

@ -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