Replies: 1 comment
-
im adding type to remove the error. not sure if its best practice or not
import { PrismaAdapter } from '@auth/prisma-adapter'
import NextAuth from 'next-auth'
import db from '@/lib/db'
export const { handlers, auth, signIn, signOut } = NextAuth({
adapter: PrismaAdapter(db as PrismaClient<Prisma.PrismaClientOptions, never, DefaultArgs>),
// ...
}) |
Beta Was this translation helpful? Give feedback.
0 replies
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Uh oh!
There was an error while loading. Please reload this page.
-
lib/db.ts
:auth.ts
:Package version:
Beta Was this translation helpful? Give feedback.
All reactions