mirror of
https://github.com/better-auth/better-auth.git
synced 2026-05-26 00:46:44 -05:00
docs(next-auth-migration): fix 'accounts' typo
This commit is contained in:
@@ -42,9 +42,9 @@ export const auth = betterAuth({
|
||||
});
|
||||
```
|
||||
|
||||
#### Accounts Schema
|
||||
#### Account Schema
|
||||
|
||||
Map these fields in the accounts schema:
|
||||
Map these fields in the account schema:
|
||||
|
||||
- `providerAccountId` → `accountId`
|
||||
- `refresh_token` → `refreshToken`
|
||||
@@ -57,7 +57,7 @@ Remove the `session_state`, `type`, and `token_type` fields, as they are not req
|
||||
```typescript title="auth.ts"
|
||||
export const auth = betterAuth({
|
||||
// Other configs
|
||||
accounts: {
|
||||
account: {
|
||||
fields: {
|
||||
accountId: "providerAccountId",
|
||||
refreshToken: "refresh_token",
|
||||
|
||||
Reference in New Issue
Block a user