Skip to content
Migrating from NextAuth.js v4? Read our migration guide.
API reference@auth/prisma-adapter

@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

ParameterType
prismaPrismaClient<PrismaClientOptions, never, DefaultArgs> | DynamicClientExtensionThis<TypeMap<InternalArgs & InternalArgs<{}, {}, {}, {}>, PrismaClientOptions>, TypeMapCb, InternalArgs<{}, {}, {}, {}>, {}>

Returns

Adapter

Auth.js © Balázs Orbán and Team - 2024