
Security News
AI Has Taken Over Open Source
Vibe coding at scale is reshaping how packages are created, contributed, and selected across the software supply chain
@forklaunch/better-auth-mikro-orm-fork
Advanced tools
MikroORM adapter for Better Auth
Using npm:
npm i better-auth-mikro-orm
Using yarn:
yarn add better-auth-mikro-orm
Using pnpm:
pnpm add better-auth-mikro-orm
mikroOrmAdapter call to the database option like this:import { mikroOrmAdapter } from "better-auth-mikro-orm";
import { betterAuth } from "better-auth";
import { orm } from "./orm.js"; // Your Mikro ORM instance
export const auth = betterAuth({
database: mikroOrmAdapter(orm),
// Don't forget to disable the ID generator if it is already managed by MikroORM
advanced: {
database: {
generateId: false,
},
},
});
mikroOrmAdapter(orm: MikroORM): AdapterInstanceCreates the MikroORM adapter instance. Note that this adapter does not manage database schemas for you, so you can't use it with @better-auth/cli.
This means you'll have to manage database schemas on your own.
Please refer to the Better Auth and MikroORM documentations for details.
Returns the AdapterInstance function for the Better Auth database option.
This function expects a single argument:
orm - An instance of MikroORM returned from either MikroORM.init or MikroORM.initSync.FAQs
Mikro ORM Adapter for Better Auth
We found that @forklaunch/better-auth-mikro-orm-fork demonstrated a healthy version release cadence and project activity because the last version was released less than a year ago. It has 1 open source maintainer collaborating on the project.
Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Security News
Vibe coding at scale is reshaping how packages are created, contributed, and selected across the software supply chain

Security News
npm invalidated all granular access tokens that bypass 2FA after a fresh Mini Shai-Hulud wave compromised 323 npm packages. Staged publishing also entered public preview.

Research
/Security News
Compromised npm package art-template delivered a Coruna-like iOS Safari exploit framework through a watering-hole attack.