1.0.1 • Published 4 years ago

jsonwebtoken-promisify v1.0.1

Weekly downloads
-
License
MIT
Repository
github
Last release
4 years ago

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

License MIT

© 2020 Wlad Gumenyuk