@using Microsoft.AspNetCore.Identity @if (Context.User.Identity.IsAuthenticated) { @*@User.FindFirst(x => x.Type == "preferred_username").Value*@ My orders Log Out @await Component.InvokeAsync("Basket", User.Identity.Name) } else { Login @await Component.InvokeAsync("Basket") }