jwt.sign() method code example Example: jsonwebtoken var jwt = require('jsonwebtoken');var token = jwt.sign({ foo: 'bar' }, 'shhhhh');