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