@inject IAuthenticationClientService AuthenticationClientService @inject NavigationManager NavigationManager Hello, @context.User.Identity.Name! LOGOUT Register Login @code { private async Task Logout() { await AuthenticationClientService.LogoutAsync(); NavigationManager.NavigateTo("/"); } }