Mikro ORM v6 adapter for Lucia auth v3 library.
npm i -S @tony-stark-eth/lucia-mikro-orm-adapter
import { lucia } from "lucia";
import { MikroOrmAdapter, User, Session, OAuthProviderAttributes } from "@tony-stark-eth/lucia-mikro-orm-adapter";
export const orm = await MikroORM.init({
// register auth entities
entities: [User, Session, OAuthProviderAttributes],
// ...
});
export const auth = lucia({
adapter: MikroOrmAdapter(orm.em),
// ...
});