signInByUsername method
Future<AuthResponse<T> >
signInByUsername(
- UsernameAuthenticator authenticator, {
- SignByBiometricCallback<
T> ? onBiometric, - Object? args,
- String? id,
- 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,
);
}