mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-11 04:19:31 +00: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