@using Photino.Blazor.CustomWindow.Components @namespace LANCommander.Launcher.UI @inherits LayoutComponentBase @inject AuthenticationClient AuthenticationClient @inject NavigationManager NavigationManager @inject LocalizationService LocalizationService @Body @code { protected override async Task OnInitializedAsync() { if (await AuthenticationClient.ValidateTokenAsync()) NavigationManager.NavigateTo("/Library"); else NavigationManager.NavigateTo("/Authenticate"); } }