1.0.7 • Published 7 years ago

jwt-payload v1.0.7

Weekly downloads
15
License
ISC
Repository
-
Last release
7 years ago

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.