title: How to get User Information after login in ASP.NET Core3.1
body: <p>I am trying to get user information after login in ASP.NET Core 3.1 (information like name, email, id, ...).</p>
  <p>Here is my code in login action</p>
  <pre><code>var claims = new List&lt;Claim&gt;()
  {
      new Claim(ClaimTypes.NameIdentifier, &quot;NameIdentifire&quot;),
      new Claim(ClaimTypes.Name, &quot;Name&quot;),
      new Claim(ClaimTypes.Email, &quot;Email&quot;)
  };
  
  var identity = new ClaimsIdentity(claims, CookieAuthenticationDefaults.AuthenticationScheme);
  
  var principal = new ClaimsPrincipal(identity);
  
  HttpContext.SignInAsync(principal);
  </code></pre>
  <p>In the views I only access the name by looking at <code>@User.Identity.Name</code>. My question is: how to get other information user in different views?</p>