1.0.1 • Published 4 years ago
jsonwebtoken-promisify v1.0.1
jsonwebtoken-promisify
A promisified version jsonwebtoken.
Table of contents
About
jsonwebtoken-promisify is a promisified version of jsonwebtoken with extensive support for TypeScript.
- Easy-to-use promises
- No callback hell
- TypeScript support
Installation
npm install jsonwebtoken-promisify
Example Usage
var jwt = require("jsonwebtoken-promisify");
jwt.sign({ foo: "bar" }, privateKey)
.then(token => {
// Do something
})
.catch(error => {
// Handle error
});
Links
Contributing
Before creating an issue, please ensure that it hasn't already been reported / suggested.
License
© 2020 Wlad Gumenyuk