mirror of
https://github.com/LukeHagar/better-auth.git
synced 2025-12-09 12:27:43 +00:00
docs: fix database example
This commit is contained in:
@@ -61,6 +61,10 @@ export const auth = await betterAuth({
|
||||
})
|
||||
```
|
||||
|
||||
<Callout>
|
||||
See <Link href="https://kysely.dev/docs/dialects" target="_blank"> Kysley Dialects </Link> for more dialects supported by kysley.
|
||||
</Callout>
|
||||
|
||||
**Example: Custom Kysely Instance**
|
||||
|
||||
```ts title="auth.ts"
|
||||
@@ -69,16 +73,12 @@ import { db } from "./db"
|
||||
|
||||
export const auth = await betterAuth({
|
||||
database: {
|
||||
kysely: db,
|
||||
db: db,
|
||||
type: "sqlite" // or "mysql", "postgres" or "mssql"
|
||||
}
|
||||
})
|
||||
```
|
||||
|
||||
<Callout>
|
||||
See <Link href="https://kysely.dev/docs/dialects" target="_blank"> Kysley Dialects </Link> for more dialects supported by kysley.
|
||||
</Callout>
|
||||
|
||||
|
||||
## Using Adapters
|
||||
|
||||
|
||||
Reference in New Issue
Block a user