unlinkProvider method
Unlink provider from user
Implementation
Future<void> unlinkProvider(SocialProvider provider) async {
try {
await _firebaseAuth.currentUser?.unlink(provider.domain);
} on FirebaseAuthException catch (e) {
throw LogInWithEmailAndPasswordFailure.fromCode(e.code);
} catch (_) {
throw const LogInWithEmailAndPasswordFailure();
}
}