
Security News
rv Is a New Rust-Powered Ruby Version Manager Inspired by Python's uv
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
better-auth-mikro-orm
Advanced tools
Mikro ORM adapter for Better Auth
pnpm:
pnpm add better-auth-mikro-orm
npm:
npm i 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 ID generator if it already managed by Mikro ORM:
advanced: {
generateId: false
}
})
mikroOrmAdapter(orm: MikroORM): AdapterInstance
Creates Mikro ORM adapter instance. Note that this adapter does not manage database schema for you, so you can't use it with @better-auth/cli
.
This means you'll have to manage database schema on your own.
Please refer to Better Auth and Mikro ORM documentation on the details.
Returns AdapterInstance
function for Better Auth database
option.
This function expects a single argument:
orm
- An instance of MikroORM
returned from MikroORM.init
or MikroORM.initSync
methods.0.4.3
2fd766a
Thanks @octet-stream! - Remove fields filtering from output normalizationFAQs
Mikro ORM Adapter for Better Auth
The npm package better-auth-mikro-orm receives a total of 182 weekly downloads. As such, better-auth-mikro-orm popularity was classified as not popular.
We found that better-auth-mikro-orm 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
Ruby maintainers from Bundler and rbenv teams are building rv to bring Python uv's speed and unified tooling approach to Ruby development.
Security News
Following last week’s supply chain attack, Nx published findings on the GitHub Actions exploit and moved npm publishing to Trusted Publishers.
Security News
AGENTS.md is a fast-growing open format giving AI coding agents a shared, predictable way to understand project setup, style, and workflows.