❔ Claim type of JwtRegisteredClaimNames.Name unrecognized as ClaimTypes.Name
Hello,
I'm working with an API that returns a token with below structure:
and using this:
When I try to access this.UserName = user.Identity.Name; it is always null. Am I doing something wrong here or is there a explicit conversion required?
I'm working with an API that returns a token with below structure:
and using this:
When I try to access this.UserName = user.Identity.Name; it is always null. Am I doing something wrong here or is there a explicit conversion required?