JWT signature verifier using public key modulus and exponent.
npm install --save git+https://github.com/quintoandar/node-jwt.git#<latest-release-version>
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);