Files
  • index.js
  • package-lock.json
index.js
1
2
var jwt = require('jsonwebtoken');
jwt.sign({ foo: 'my-username' }, 'yann');
node v10.15.2 linux/amd64