From ee9e969712109e31fc2a22e003d222c8ec4a7288 Mon Sep 17 00:00:00 2001 From: Bereket Engida Date: Sun, 13 Apr 2025 00:13:59 +0300 Subject: [PATCH] docs(next-auth-migration): fix 'accounts' typo --- docs/content/docs/guides/next-auth-migration-guide.mdx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) 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",