From a019b7ab33a678f19659d7de89ed38d08408b2ee Mon Sep 17 00:00:00 2001 From: shadcn Date: Mon, 24 Apr 2023 18:59:33 +0400 Subject: [PATCH] fix: turn on debuggin --- lib/auth.ts | 3 +++ 1 file changed, 3 insertions(+) diff --git a/lib/auth.ts b/lib/auth.ts index 885adf5..d551ab4 100644 --- a/lib/auth.ts +++ b/lib/auth.ts @@ -15,6 +15,7 @@ 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", }, @@ -63,6 +64,8 @@ export const authOptions: NextAuthOptions = { ], }) + console.log({ result }) + if (result.ErrorCode) { throw new Error(result.Message) }