[GH-ISSUE #8744] [Docs] accountInfo code snippet is wrong #11180

Closed
opened 2026-04-13 07:32:25 -05:00 by GiteaMirror · 1 comment
Owner

Originally created by @mintydev789 on GitHub (Mar 23, 2026).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/8744

Is this suited for github?

  • Yes, this is suited for github

To Reproduce

Go to the docs page for getting account info by provider

Current vs. Expected behavior

It has this code snippet:

const info = await authClient.accountInfo({
  accountId: "accountId", // here you pass in the provider given account id, the provider is automatically detected from the account id
})

But the correct code is this:

const info = await authClient.accountInfo({ query:
  accountId: "accountId", // here you pass in the provider given account id, the provider is automatically detected from the account id
}})

What version of Better Auth are you using?

1.5.5

System info

Not applicable

Which area(s) are affected? (Select all that apply)

Documentation

Auth config (if applicable)


Additional context

No response

Originally created by @mintydev789 on GitHub (Mar 23, 2026). Original GitHub issue: https://github.com/better-auth/better-auth/issues/8744 ### Is this suited for github? - [x] Yes, this is suited for github ### To Reproduce Go to the [docs page for getting account info by provider](https://better-auth.com/docs/concepts/oauth#get-account-info-provided-by-the-provider) ### Current vs. Expected behavior It has this code snippet: ```ts const info = await authClient.accountInfo({ accountId: "accountId", // here you pass in the provider given account id, the provider is automatically detected from the account id }) ``` But the correct code is this: ```ts const info = await authClient.accountInfo({ query: accountId: "accountId", // here you pass in the provider given account id, the provider is automatically detected from the account id }}) ``` ### What version of Better Auth are you using? 1.5.5 ### System info ```bash Not applicable ``` ### Which area(s) are affected? (Select all that apply) Documentation ### Auth config (if applicable) ```typescript ``` ### Additional context _No response_
GiteaMirror added the locked label 2026-04-13 07:32:25 -05:00
Author
Owner

@github-actions[bot] commented on GitHub (Mar 31, 2026):

This issue has been locked as it was closed more than 7 days ago. If you're experiencing a similar problem or you have additional context, please open a new issue and reference this one.

<!-- gh-comment-id:4165909832 --> @github-actions[bot] commented on GitHub (Mar 31, 2026): This issue has been locked as it was closed more than 7 days ago. If you're experiencing a similar problem or you have additional context, please open a new issue and reference this one.
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#11180