@using LibMatrix.Homeservers @inject ILogger Logger @if(Client == null) { Not logged in. Login } else { Logged in as @Client.Homeserver.UserId Logout } @code { private BugMineClient? Client { get; set; } private string Status { get; set; } = ""; protected override async Task OnInitializedAsync() { while(Client == null) { Client = await BugMineStorage.GetCurrentSessionOrNull(false); if(Client == null) { await Task.Delay(1000); } } } }