public async Task LogoutUser() { IsLoading = true; try { //await _authenticationManager.LogoutAsync(WebManager.AuthenticationCookie); await RemoveUserCookies(); await UserAuthDatabase.RemoveUser(User); IsLoggedIn = false; App.ShellViewModel.PopulateNavItems(); } catch (Exception ex) { await ResultChecker.SendMessageDialogAsync($"Failed to log user out: {ex.Message}", false); } IsLoading = false; }