diff --git a/docs/content/docs/guides/next-auth-migration-guide.mdx b/docs/content/docs/guides/next-auth-migration-guide.mdx index 70cfaa3b5d..6c291829f5 100644 --- a/docs/content/docs/guides/next-auth-migration-guide.mdx +++ b/docs/content/docs/guides/next-auth-migration-guide.mdx @@ -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",