Export util function or plugin to get social account detail #502

Closed
opened 2026-03-13 07:50:06 -05:00 by GiteaMirror · 4 comments
Owner

Originally created by @hyoban on GitHub (Dec 31, 2024).

Is this suited for github?

  • Yes, this is suited for github

To better show the user what social account he is currently linked to, we need to be able to display the information of the social account

Describe the solution you'd like

Export the getUserInfo utility function from the social provider. Or add a new plugin to get account profile detail

Describe alternatives you've considered

Return details in listAccounts

Additional context

I am willing to submit a PR to fix this issue

Originally created by @hyoban on GitHub (Dec 31, 2024). ### Is this suited for github? - [X] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. To better show the user what social account he is currently linked to, we need to be able to display the information of the social account ### Describe the solution you'd like Export the `getUserInfo` utility function from the social provider. Or add a new plugin to get account profile detail ### Describe alternatives you've considered Return details in `listAccounts` ### Additional context I am willing to submit a PR to fix this issue
Author
Owner

@dosubot[bot] commented on GitHub (Jun 12, 2025):

Hi, @hyoban. I'm Dosu, and I'm helping the better-auth team manage their backlog. I'm marking this issue as stale.

Issue Summary:

  • You requested a feature to improve user awareness of linked social accounts.
  • Suggested solutions include exporting getUserInfo or creating a new plugin.
  • An alternative is to return these details in the listAccounts function.
  • You expressed willingness to contribute with a pull request.
  • No further activity or comments have been made on this issue.

Next Steps:

  • Please confirm if this issue is still relevant to the latest version of the better-auth repository by commenting here.
  • If no updates are provided, the issue will be automatically closed in 7 days.

Thank you for your understanding and contribution!

@dosubot[bot] commented on GitHub (Jun 12, 2025): Hi, @hyoban. I'm [Dosu](https://dosu.dev), and I'm helping the better-auth team manage their backlog. I'm marking this issue as stale. **Issue Summary:** - You requested a feature to improve user awareness of linked social accounts. - Suggested solutions include exporting `getUserInfo` or creating a new plugin. - An alternative is to return these details in the `listAccounts` function. - You expressed willingness to contribute with a pull request. - No further activity or comments have been made on this issue. **Next Steps:** - Please confirm if this issue is still relevant to the latest version of the better-auth repository by commenting here. - If no updates are provided, the issue will be automatically closed in 7 days. Thank you for your understanding and contribution!
Author
Owner

@Bekacru commented on GitHub (Jun 16, 2025):

not stale

@Bekacru commented on GitHub (Jun 16, 2025): not stale
Author
Owner

@ping-maxwell commented on GitHub (Jul 1, 2025):

I believe you can call authClient.accountInfo?

@ping-maxwell commented on GitHub (Jul 1, 2025): I believe you can call `authClient.accountInfo`?
Author
Owner

@Bekacru commented on GitHub (Jul 2, 2025):

yes

@Bekacru commented on GitHub (Jul 2, 2025): yes
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#502