createConfirmationCode method

  1. @override
Future<void> createConfirmationCode({
  1. UserLogin? login,
  2. UserNum? num,
  3. UserEmail? email,
  4. UserPhone? phone,
  5. String? locale,
})
override

Generates and sends a new single-use ConfirmationCode for the MyUser identified by the provided login, num, email and/or phone.

Implementation

@override
Future<void> createConfirmationCode({
  UserLogin? login,
  UserNum? num,
  UserEmail? email,
  UserPhone? phone,
  String? locale,
}) async {
  Log.debug(
    'createConfirmationCode(login: $login, num: $num, email: ${email?.obscured}, phone: ${phone?.obscured}, locale: $locale)',
    '$runtimeType',
  );

  await _graphQlProvider.createConfirmationCode(
    MyUserIdentifier(login: login, num: num, email: email, phone: phone),
    locale: locale,
  );
}