docs: fix MongoDB Adapter Docs (#351)

This commit is contained in:
Anmol
2024-10-27 12:29:17 +03:00
committed by GitHub
parent 2b3d41c086
commit 7cb5b09226
+3 -1
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)
})
```