Q:

json web token npm

$ npm install jsonwebtoken
5
jwt.sign({  exp: Math.floor(Date.now() / 1000) + (60 * 60),  data: 'foobar'}, 'secret');
2
$ npm install jwt-simple
2
var jwt = require('jsonwebtoken');var token = jwt.sign({ foo: 'bar' }, 'shhhhh');
0

New to Communities?

Join the community