Blazor's component AuthorizeView can display User identity name.
<AuthorizeView>
<Authorized>
@context.User.Identity.Name
</Authorized>
</AuthorizeView>
How can I access to the User variable in the OnInitializedAsync() method in a Blazor page?
IHttpContextAccessor is not an option, because Microsoft insists, you must not use IHttpContextAccessor within Blazor apps.