docs: fix MongoDB Adapter Docs (#351)

This commit is contained in:
Anmol
2024-10-27 14:59:17 +05:30
committed by GitHub
parent 2b3d41c086
commit 7cb5b09226

View File

@@ -153,8 +153,10 @@ import { mongodbAdapter } from "better-auth/adapters/mongodb";
const client = new MongoClient("mongodb://localhost:27017");
const db = client.db()
export const auth = betterAuth({
database: mongodbAdapter(client)
database: mongodbAdapter(db)
})
```