signUpByEmail method

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

Implementation

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