mobileSignIn method

  1. @override
void mobileSignIn(
  1. AuthAction action
)

Handles authentication logic on mobile platforms.

Implementation

@override
void mobileSignIn(AuthAction action) {
  authListener.onBeforeSignIn();

  if (action == AuthAction.link) {
    auth.currentUser
        ?.linkWithProvider(firebaseAuthProvider)
        .then(_onLinked)
        .catchError(authListener.onError);
    return;
  }

  auth
      .signInWithProvider(firebaseAuthProvider)
      .then(authListener.onSignedIn)
      .catchError(authListener.onError);
}