docs(next-auth-migration): fix 'accounts' typo

This commit is contained in:
Bereket Engida
2025-04-13 00:13:59 +03:00
parent e09ceae2d6
commit ee9e969712

View File

@@ -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",