Can anyone please check below code and let me know why I\'m getting always false (User.Identity.IsAuthenticated)??. I\'m getting cookie on my browser properly and
able to
ClaimsIdentity.IsAuthenticated returns false when ClaimsIdentity.AuthenticationType is null or empty. To avoid that, stop using the parameterless ClaimsIdentity constructor and use the overload accepting an authenticationType parameter: