decode jwt token and get id node js code example Example 1: json web token npm $ npm install jsonwebtoken Example 2: npm package for jwt $ npm install jwt-simple