signInWithPopup method Null safety

Future<UserCredential> signInWithPopup(
  1. AuthProvider provider

Authenticates a Firebase client using a popup-based OAuth authentication flow.

If succeeds, returns the signed in user along with the provider's credential.

This method is only available on web based platforms.


Future<UserCredential> signInWithPopup(AuthProvider provider) async {
  try {
    return UserCredential._(this, await _delegate.signInWithPopup(provider));
  } on FirebaseAuthMultiFactorExceptionPlatform catch (e) {
    throw FirebaseAuthMultiFactorException._(this, e);
  } catch (e) {