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 {
  final userCredential = await guardAuthExceptions(
    () => delegate.signInWithPopup(
      convertPlatformAuthProvider(provider),
    ),
    auth: _webAuth,
  );

  return UserCredentialWeb(
    this,
    userCredential,
    _webAuth,
  );
}