unlink method

Future<User> unlink(
  1. String providerId
)

Unlinks a provider from a user account.

A FirebaseAuthException maybe thrown with the following error code:

  • no-such-provider:
  • Thrown if the user does not have this provider linked or when the provider ID given does not exist.

Implementation

Future<User> unlink(String providerId) async {
  return User._(_auth, await _delegate.unlink(providerId));
}