unlinkProviders method

Future<void> unlinkProviders(
  1. List<String> providers
)

Unlinks all specified providers from the account.

This removes all login providers from the account that are specified via providers. The expected IDs are the same as returned by IdpProvider.id. If the unlinking fails, an AuthError will be thrown.

After a provider has been removed, the user cannot login anymore with that provider. However, you can always re-add providers via linkEmail() or linkIdp().

Implementation

Future<void> unlinkProviders(List<String> providers) => api.unlinkProvider(
      UnlinkRequest(
        idToken: _idToken,
        deleteProvider: providers,
      ),
    );