SyntaxFix
Write A Post
Hire A Developer
Questions
new JwtSecurityTokenHandler().ReadToken("") will return a SecurityToken
new JwtSecurityTokenHandler().ReadToken("")
SecurityToken
new JwtSecurityTokenHandler().ReadJwtToken("") will return a JwtSecurityToken
new JwtSecurityTokenHandler().ReadJwtToken("")
JwtSecurityToken
If you just change the method you are using you can avoid the cast in the above answer