authenticate method

void authenticate(
  1. String email,
  2. String password, [
  3. AuthAction action = AuthAction.signIn
])

Creates an EmailAuthCredential with the given email and password and performs a corresponding AuthAction.

Implementation

void authenticate(
  String email,
  String password, [
  AuthAction action = AuthAction.signIn,
]) {
  final credential = fba.EmailAuthProvider.credential(
    email: email,
    password: password,
  ) as fba.EmailAuthCredential;

  onCredentialReceived(credential, action);
}