how to find user by its username in asp.net core identity code example
Example: how get the user show mvc controller core 3.1
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();
services.AddSingleton<IHttpContextAccessor, HttpContextAccessor>();