signInWithPopup method

  1. @override
Future<UserCredentialPlatform> 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.

Implementation

@override
Future<UserCredentialPlatform> signInWithPopup(AuthProvider provider) async {
  try {
    return UserCredentialWeb(
      this,
      await _webAuth!.signInWithPopup(convertPlatformAuthProvider(provider)),
    );
  } catch (e) {
    throw getFirebaseAuthException(e);
  }
}