Search
 
SCRIPT & CODE EXAMPLE
 
CODE EXAMPLE FOR CSHARP

decode token to get claims value

var Token = "[encoded jwt]";  
 var handler = new JwtSecurityTokenHandler(); 
 var jwt = handler.ReadJwtToken(token);
 var Name = jwt.Claims.First(claim => claim.Type == "Name").Value;
 var User_Id = jwt.Claims.First(claim => claim.Type == "User_Id").Value;
Source by stackoverflow.com #
 
PREVIOUS NEXT
Tagged: #decode #token #claims
ADD COMMENT
Topic
Name
8+9 =