mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-29 18:36:34 -05:00
docs: fix mongodb adapter example
This commit is contained in:
@@ -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
|
||||
|
||||
|
||||
|
||||
Reference in New Issue
Block a user