signInByEmail method

Future<AuthResponse<T>> signInByEmail(
  1. EmailAuthenticator authenticator, {
  2. SignByBiometricCallback<T>? onBiometric,
  3. Object? args,
  4. String? id,
  5. bool notifiable = true,
})
inherited

Implementation

Future<AuthResponse<T>> signInByEmail(
  EmailAuthenticator authenticator, {
  SignByBiometricCallback<T>? onBiometric,
  Object? args,
  String? id,
  bool notifiable = true,
}) {
  return _signInWithEmailOrUsername(
    provider: 'EMAIL',
    type: AuthType.login,
    doneMsg: msg.signInWithEmail.done,
    failureMsg: msg.signInWithEmail.failure,
    authenticator: authenticator,
    onBiometric: onBiometric,
    signIn: () => delegate.signInWithEmailNPassword(
      authenticator.email,
      authenticator.password,
    ),
    args: args,
    id: id,
    notifiable: notifiable,
  );
}