signInByUsername method

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

Implementation

Future<AuthResponse<T>> signInByUsername(
  UsernameAuthenticator authenticator, {
  SignByBiometricCallback<T>? onBiometric,
  Object? args,
  String? id,
  bool notifiable = true,
}) {
  return _signInWithEmailOrUsername(
    provider: 'USERNAME',
    type: AuthType.login,
    doneMsg: msg.signInWithUsername.done,
    failureMsg: msg.signInWithUsername.failure,
    authenticator: authenticator,
    onBiometric: onBiometric,
    signIn: () => delegate.signInWithUsernameNPassword(
      authenticator.username,
      authenticator.password,
    ),
    args: args,
    id: id,
    notifiable: notifiable,
  );
}