[GH-ISSUE #1434] Retrieving the enabled OAuth providers in the project #8753

Closed
opened 2026-04-13 03:57:20 -05:00 by GiteaMirror · 3 comments
Owner

Originally created by @mcorbelli on GitHub (Feb 13, 2025).
Original GitHub issue: https://github.com/better-auth/better-auth/issues/1434

Is this suited for github?

  • Yes, this is suited for github

No response

Describe the solution you'd like

It would be useful to have a feature to retrieve all enabled OAuth clients in the project. A similar feature exists for NextAuth (getProviders).

Describe alternatives you've considered

It would be useful to have a feature to retrieve all enabled OAuth clients in the project. A similar feature exists for NextAuth (getProviders).

Additional context

No response

Originally created by @mcorbelli on GitHub (Feb 13, 2025). Original GitHub issue: https://github.com/better-auth/better-auth/issues/1434 ### Is this suited for github? - [x] Yes, this is suited for github ### Is your feature request related to a problem? Please describe. _No response_ ### Describe the solution you'd like It would be useful to have a feature to retrieve all enabled OAuth clients in the project. A similar feature exists for NextAuth (getProviders). ### Describe alternatives you've considered It would be useful to have a feature to retrieve all enabled OAuth clients in the project. A similar feature exists for NextAuth (getProviders). ### Additional context _No response_
GiteaMirror added the locked label 2026-04-13 03:57:20 -05:00
Author
Owner

@iamalexm commented on GitHub (Feb 21, 2025):

A feature like this would be nice indeed!

<!-- gh-comment-id:2674945440 --> @iamalexm commented on GitHub (Feb 21, 2025): A feature like this would be nice indeed!
Author
Owner

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

Hi, @mcorbelli. 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 retrieve all enabled OAuth providers, similar to getProviders in NextAuth.
  • No specific problems or additional context were provided with the request.
  • User iamalexm agreed that this feature would be beneficial.

Next Steps:

  • Please let me know 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!

<!-- gh-comment-id:2970840755 --> @dosubot[bot] commented on GitHub (Jun 13, 2025): Hi, @mcorbelli. 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 retrieve all enabled OAuth providers, similar to `getProviders` in NextAuth. - No specific problems or additional context were provided with the request. - User iamalexm agreed that this feature would be beneficial. **Next Steps:** - Please let me know 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

@Kinfe123 commented on GitHub (Jun 14, 2025):

you can use auth options for listing the current enabled providers

const listOfSocialProviders = Object.keys(auth.options.socialProviders)
<!-- gh-comment-id:2972090401 --> @Kinfe123 commented on GitHub (Jun 14, 2025): you can use auth options for listing the current enabled providers ```ts const listOfSocialProviders = Object.keys(auth.options.socialProviders) ```
Sign in to join this conversation.
1 Participants
Notifications
Due Date
No due date set.
Dependencies

No dependencies set.

Reference: github-starred/better-auth#8753