@page "/user/logout" @inject IUserService UserService @code { protected override async void OnInitialized() { await UserService.Logout(); } }