hatchmoment. scored by care · not by stars

better-auth-mongoose

Mongoose adapter for Better Auth, enabling native models and populate

notableTypeScript🗄 Data & Databases

Better Auth’s official MongoDB adapter uses the low‑level driver, causing duplicate connections and broken .populate() when apps already use Mongoose. This library provides a Mongoose‑native adapter so Better Auth collections become real Mongoose models with validation, hooks, and population support. It also offers an optional tenant‑scoping plugin for multi‑tenant apps. Ideal for Node developers who want seamless authentication integration without extra drivers.

authenticationbetter-authmongodbmongoosemongoose-adapternodejstypescript
View on GitHub →

AshwinSathian/better-auth-mongoose