How to check if given OAuth provider is enabled?

I've tried
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
}

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.
Was this page helpful?