docs: fix mongodb adapter example

This commit is contained in:
Bereket Engida
2024-12-24 09:27:50 +03:00
parent 05f6bb9f9e
commit ee5cc5d1b9

View File

@@ -160,22 +160,6 @@ export const auth = betterAuth({
})
```
#### Use Plural Form
If your schema uses plural form for table names, you can pass the `usePlural` option to the adapter.
```ts title="auth.ts"
import { betterAuth } from "better-auth";
import { MongoClient } from "mongodb";
import { mongoAdapter } from "better-auth/adapters/mongodb";
export const auth = betterAuth({
database: mongoAdapter(client, {
usePlural: true
})
})
```
## CLI