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.

Versions

Current Tags

  • Version
    Downloads (Last 7 Days)
    • Tag
  • 1.0.7
    41
    • latest

Version History

  • Version
    Downloads (Last 7 Days)
    • Published
  • 1.0.7
    41
  • 1.0.6
    1
  • 1.0.5
    0

Package Sidebar

Install

npm i jwt-payload

Weekly Downloads

40

Version

1.0.7

License

ISC

Last publish

Collaborators

  • sankarseran