mobileSignIn method
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);
}