I\'m testing the waters with a blazer server-side app and trying to get the logged user in a .razor page. This
UserManager.GetUserAsync(User)
What I did:
services.AddHttpContextAccessor();
@inject UserManager UserManager
@inject IHttpContextAccessor HttpContextAccessor
Hello @UserManager.GetUserName(HttpContextAccessor.HttpContext.User)