jwt-payload

1.0.7 • Public • Published

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.

Dependencies (1)

Dev Dependencies (0)

    Package Sidebar

    Install

    npm i jwt-payload

    Weekly Downloads

    42

    Version

    1.0.7

    License

    ISC

    Last publish

    Collaborators

    • sankarseran