deleteProviderConfig method

Future<void> deleteProviderConfig(
  1. String providerId
)
inherited

Deletes the provider configuration corresponding to the provider ID passed. If the specified ID does not exist, an auth/configuration-not-found error is thrown.

SAML and OIDC provider support requires Google Cloud's Identity Platform (GCIP). To learn more about GCIP, including pricing and features, see the https://cloud.google.com/identity-platform.

Implementation

Future<void> deleteProviderConfig(String providerId) {
  if (_OIDCConfig.isProviderId(providerId)) {
    return _authRequestHandler.deleteOAuthIdpConfig(providerId);
  } else if (_SAMLConfig.isProviderId(providerId)) {
    return _authRequestHandler.deleteInboundSamlConfig(providerId);
  }
  throw FirebaseAuthAdminException(AuthClientErrorCode.invalidProviderId);
}