Unlink Provider

Use the unlinkProvider method to unlink a third-party provider (e.g., Google, Facebook) from the current user's account.

final user = FirebaseApp.firebaseAuth?.unlinkProvider(providerId);

Parameters

  • providerId (String): The provider ID (e.g., 'google.com', 'facebook.com') of the service you want to unlink.

Return

  • User?: The user instance representing the current user after the provider has been unlinked.

This method unlinks the specified provider from the current user's account and returns the updated user data.

Last updated