Skip to content

Latest commit

 

History

History
27 lines (17 loc) · 561 Bytes

README.md

File metadata and controls

27 lines (17 loc) · 561 Bytes

node-jwt

JWT signature verifier using public key modulus and exponent.

Usage

npm install --save git+https://github.com/quintoandar/node-jwt.git#<latest-release-version>

See releases

const verify = require('quintoandar-jwt').getVerifier(modulus, exponent);

verify("your token");

The verify function will return the decoded JWT as an object with both the header and payload properties.

const jwt = verify("your token");

console.log(jwt.id);
console.log(jwt.name);