validateConfirmationCode method

Future<void> validateConfirmationCode({
  1. UserLogin? login,
  2. UserNum? num,
  3. UserEmail? email,
  4. UserPhone? phone,
  5. required ConfirmationCode code,
})

Validates the provided ConfirmationCode for the MyUser identified by the provided login, num, email and/or phone without using it.

Implementation

Future<void> validateConfirmationCode({
  UserLogin? login,
  UserNum? num,
  UserEmail? email,
  UserPhone? phone,
  required ConfirmationCode code,
}) async {
  Log.debug(
    'validateConfirmationCode(login: $login, num: $num, email: ${email?.obscured}, phone: ${phone?.obscured})',
    '$runtimeType',
  );

  await _authRepository.validateConfirmationCode(
    login: login,
    num: num,
    email: email,
    phone: phone,
    code: code,
  );
}