Mumba JWT
A service for working with JSON Web Tokens based on jsonwebtoken.
Installation
$ npm install --save mumba-jwt
Examples
; // Sync example; ; // Not a token.service.decode'foo'; // null // Creating and decoding token.;; console.logdecoded.sub; // 123console.logdecoded.foo; // bar // Verifying a bad token.service.verify'not.even.close' .catch; service.verifytoken .then;
Tests
To run the test suite, first install the dependencies, then run npm test
:
$ npm install$ npm test
People
The original author of Mumba WAMP is Andrew Eddie.
License
© 2017 Mumba Pty Ltd. All rights reserved.