@page "/user" @attribute [Authorize] @using Microsoft.AspNetCore.Components.WebAssembly.Authentication @inject NavigationManager Navigation

User @context.User.Identity?.Name

Logout
@code { public void BeginLogOut() { Navigation.NavigateToLogout("authentication/logout"); } }