© 2026 Hedgehog Software, LLC

TwitterGitHubDiscord
More
CommunitiesDocsAboutTermsPrivacy
Search
Star
Setup for Free
SupabaseS
Supabase•13mo ago•
16 replies
Milen Dyankov

How to check if given OAuth provider is enabled?

I've tried
auth.signInWithOAuth({
         provider: "definitelly_not_known_to_supabase"
         options: {
            skipBrowserRedirect: true,
         },
      })
auth.signInWithOAuth({
         provider: "definitelly_not_known_to_supabase"
         options: {
            skipBrowserRedirect: true,
         },
      })

hoping I'll get an error. But that seems to always return an URL regardless of the provider's name:

{
    "data": {
        "provider": "definitelly_not_known_to_supabase",
        "url": "http://127.0.0.1:54321/auth/v1/authorize?provider=definitelly_not_known_to_supabase&code_challenge=3jbsi3kBJUDw5JkJksTUnPCu5s-ZKTzCgXUBGOX6qBw&code_challenge_method=s256"
    },
    "error": null
}
{
    "data": {
        "provider": "definitelly_not_known_to_supabase",
        "url": "http://127.0.0.1:54321/auth/v1/authorize?provider=definitelly_not_known_to_supabase&code_challenge=3jbsi3kBJUDw5JkJksTUnPCu5s-ZKTzCgXUBGOX6qBw&code_challenge_method=s256"
    },
    "error": null
}

Is there a way to check if an OAuth provider is enabled? I need this so I can show/hide the respective "Sign in with ..." options in my app based on how given instance of Supabase is configured.
Supabase banner
SupabaseJoin
Supabase gives you the tools, documentation, and community that makes managing databases, authentication, and backend infrastructure a lot less overwhelming.
45,816Members
Resources

Similar Threads

Was this page helpful?
Recent Announcements

Similar Threads

How to check if autocommit mode is enabled ?
SupabaseSSupabase / help-and-questions
3y ago
400 Validation Error on Twitter OAuth (Provider Enabled)
SupabaseSSupabase / help-and-questions
5w ago
how to check if user exists only with Google OAuth?
SupabaseSSupabase / help-and-questions
4y ago
How to check if a column contains a given string (exactly)
SupabaseSSupabase / help-and-questions
4y ago