json web tokens npm code example
Example 1: json web token npm
$ npm install jsonwebtoken
Example 2: npm package for jwt
$ npm install jwt-simple
Example 3: jsonwebtoken
jwt.sign({ exp: Math.floor(Date.now() / 1000) + (60 * 60), data: 'foobar'}, 'secret');