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

@auth/mikro-orm-adapter

Official MikroORM adapter for Auth.js / NextAuth.js.

Installation

npm install @mikro-orm/core @auth/mikro-orm-adapter

defaultEntities

Renames and re-exports lib/entities

MikroOrmAdapter()

MikroOrmAdapter<D>(ormOptions, options?): Adapter

Type parameters

Type parameterValue
D extends IDatabaseDriver<Connection>IDatabaseDriver<Connection>

Parameters

ParameterType
ormOptionsOptions<D>
options?Object
options.entities?Partial<lib/entities>

Returns

Adapter

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