public async Task <IActionResult> OnGetAsync() { var userId = _currentUserService.UserId; IsAuthenticatorEnabled = await _authenticatorService.GetAuthenticatorEnabledAsync(userId); if (IsAuthenticatorEnabled) { IsMachineRemembered = await _authenticatorService.IsMachineRememberedAsync(userId); } else { await LoadSharedKeyAndQrCodeUriAsync(userId); } return(Page()); }