Skip to content

Latest commit

 

History

History
35 lines (29 loc) · 1011 Bytes

README.md

File metadata and controls

35 lines (29 loc) · 1011 Bytes

decipher-jwt

A simple node package that deciphers jwt token into json object

Installation

 WITH NPM: $ npm install decipher-jwt
 With YARN: $ yarn add decipher-jwt

Author

Boluwaji Akinsefunmi

Published by MasterCraft
Inspired and tested by:

Usage

    const { decipherJwt } = require("decipher-jwt");
    const jwtToken = "Bearer xxxxxxxxxxx.xxxxxxxxx.xxxxxxx";
    // it is not compulsory for the jwtToken string to contain 'Bearer' keyword
    console.log(decipherJwt(jwtToken));

Outcome

Success


Failure

Contributions

Pull requests are welcome. For major changes, please open an issue first 
to discuss what you would like to change.

License

MIT License