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

@auth/drizzle-adapter

Official Drizzle ORM adapter for Auth.js / NextAuth.js.

Installation

npm install drizzle-orm @auth/drizzle-adapter
npm install drizzle-kit --save-dev

DrizzleAdapter()

DrizzleAdapter<SqlFlavor>(db, schema?): Adapter

Type parameters

Type parameter
SqlFlavor extends SqlFlavorOptions

Parameters

ParameterType
dbSqlFlavor
schema?DefaultSchema<SqlFlavor>

Returns

Adapter

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