jwtvalidation
v1.0.1
Published
Validates any JWT to return a boolean value
Downloads
7
Readme
JWT-Validation
npm module to validate JWT tokens as per JWS_REGEX
Usage
var validChecker = require('jwtvalidation');
var token = 'eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJpZCI6IjU1NDczMjU0NTIzNTM1NjQ1MzI3NDkiLCJpYXQiOjE0NzUwNTA5NDcsImV4cCI6MTQ3NTA5NDE0N30.kD9pfNAOlkx5hR-m71EI5U0Z-J-76RcVGsIxAFdNSdc';
console.log(validChecker(token)); //=>Gives true