mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-26 17:06:41 -05:00
docs: fix MongoDB Adapter Docs (#351)
This commit is contained in:
@@ -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)
|
||||
})
|
||||
```
|
||||
|
||||
|
||||
Reference in New Issue
Block a user