deleteMyUser method

Future<void> deleteMyUser({
  1. UserPassword? password,
  2. ConfirmationCode? confirmation,
})

Deletes the authenticated MyUser completely.

This action cannot be reverted.

Implementation

Future<void> deleteMyUser({
  UserPassword? password,
  ConfirmationCode? confirmation,
}) async {
  Log.debug(
    'deleteMyUser(password: ***, confirmation: $confirmation)',
    '$runtimeType',
  );

  await _myUserRepository.deleteMyUser(
    password: password,
    confirmation: confirmation,
  );

  _onUserDeleted();
}