auth0/node-jsonwebtoken
Build Dependency An implementation of JSON Web Tokens. This was developed against draft-ietf-oauth-json-web-token-08. It makes use of node-jws $ npm install jsonwebtoken (Asynchronous) If a callback is supplied, the callback is called with the err or the JWT. (Synchronous) Returns the JsonWebToken as string payload could be an object literal, buffer or string representing valid JSON.
https://github.com/auth0/node-jsonwebtoken