@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 parameter | Value |
---|---|
D extends IDatabaseDriver <Connection > | IDatabaseDriver <Connection > |
Parameters
Parameter | Type |
---|---|
ormOptions | Options <D > |
options ? | Object |
options.entities ? | Partial <lib/entities > |