[GH-ISSUE #1951] Missing argument in unlinkAccount example #8979

Closed
opened 2026-04-13 04:13:40 -05:00 by GiteaMirror · 0 comments
Owner

Originally created by @JesperSvensson00 on GitHub (Mar 23, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1951

Is this suited for github?

  • Yes, this is suited for github

Since 1.2.4, more specifically #1803 the documentation around Account Unlinking is not up to date.

Describe the solution you'd like

Adding the missing parameter accountId along with some explanation of the functionality.

await authClient.unlinkAccount({
    providerId: "google",
    accountId: "account id"
});

Describe alternatives you've considered

None

Additional context

No response

Originally created by @JesperSvensson00 on GitHub (Mar 23, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1951 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. Since 1.2.4, more specifically #1803 the documentation around [Account Unlinking](https://www.better-auth.com/docs/concepts/users-accounts#account-unlinking) is not up to date. ### Describe the solution you'd like Adding the missing parameter `accountId` along with some explanation of the functionality. ```TypeScript await authClient.unlinkAccount({ providerId: "google", accountId: "account id" }); ``` ### Describe alternatives you've considered None ### Additional context _No response_
GiteaMirror added the locked label 2026-04-13 04:13:40 -05:00
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8979