@auth/prisma-adapter
Official Prisma adapter for Auth.js / NextAuth.js.
Installation
npm install @prisma/client @auth/prisma-adapter
npm install prisma --save-dev
PrismaAdapter()
PrismaAdapter(prisma): Adapter
Parameters
Parameter | Type |
---|---|
prisma | PrismaClient <PrismaClientOptions , never , DefaultArgs > | DynamicClientExtensionThis <TypeMap <InternalArgs & InternalArgs <{}, {}, {}, {}>, PrismaClientOptions >, TypeMapCb , InternalArgs <{}, {}, {}, {}>, {}> |