GoTrueAdminCustomProvidersApi
import type { GoTrueAdminCustomProvidersApi } from "https://esm.sh/@supabase/supabase-js@2.99.0/dist/index.d.mts";Contains all custom OIDC/OAuth provider administration methods.
§Methods
Creates a new custom OIDC/OAuth provider.
For OIDC providers, the server fetches and validates the OpenID Connect discovery document
from the issuer's well-known endpoint (or the provided discovery_url) at creation time.
This may return a validation error (error_code: "validation_failed") if the discovery
document is unreachable, not valid JSON, missing required fields, or if the issuer
in the document does not match the expected issuer.
This function should only be called on a server. Never expose your service_role key in the browser.
Gets details of a specific custom provider by identifier.
This function should only be called on a server. Never expose your service_role key in the browser.
Lists all custom providers with optional type filter.
This function should only be called on a server. Never expose your service_role key in the browser.
Updates an existing custom provider.
When issuer or discovery_url is changed on an OIDC provider, the server re-fetches and
validates the discovery document before persisting. This may return a validation error
(error_code: "validation_failed") if the discovery document is unreachable, invalid, or
the issuer does not match.
This function should only be called on a server. Never expose your service_role key in the browser.