mirror of
https://github.com/shadcn-ui/taxonomy
synced 2026-05-24 09:48:32 +00:00
fix: turn on debuggin
This commit is contained in:
parent
8e324c98bf
commit
a019b7ab33
1 changed files with 3 additions and 0 deletions
|
|
@ -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)
|
||||
}
|
||||
|
|
|
|||
Loading…
Reference in a new issue