namespace TaikoWebUI.Pages; public partial class Users { private List? users; protected override async Task OnInitializedAsync() { await base.OnInitializedAsync(); if (AuthService.LoginRequired && !AuthService.IsLoggedIn) { await AuthService.LoginWithAuthToken(); } if (AuthService.IsAdmin || !AuthService.LoginRequired) { users = await Client.GetFromJsonAsync>("api/Users"); } } }