public override async Task InitializeAsync() { var token = await _tokenService.GetNewTokenAsync(_cancellationTokenSource.Token); if (_cancellationTokenSource.IsCancellationRequested) { return; } var isConfirmed = !string.IsNullOrEmpty(token) && Equals(NewRingViewModel.Token, token); if (!isConfirmed) { _dialogService.ShowWarningDialog("Bad confirmation token. Please place the previous NFC Ring"); await InitializeAsync(); return; } await _tokenService.AddTokenAsync(NewRingViewModel.Login, NewRingViewModel.Password, NewRingViewModel.Token); ToNext(); }