How to use
install jwt-payload
install jwt-payload
$ npm install jwt-payload --save
Install the jwt-simple
$ npm install jwt-simple --save
EXAMPLE CODE
const payload = require('token-payload');
var paylod = payload(request.headers, secret, 'HS256');
request.headers - header of the httprequest this given the header values.
secret - this is secret key of jwt to extract the jwt.
'HS256' - this is algorithm type of jwt this want to mention then nly token will able to extract.