Skip to content

wdmtech/jwt-payload-decoder

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

43 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

jwt-payload-decoder

A simple, exportable function for getting the payload from a JWT (JSON Web Token).

https://jwt.io/


Installation

$ npm install jwt-payload-decoder --save

Usage

Require the package in your application:

var jwtPayloadDecoder = require('jwt-payload-decoder')

Then get the payload like so:

var payload = jwtPayloadDecoder.getPayload(token)

var user = {
  email: payload.email,
  name: payload.name
}

About

A simple function for getting the payload from a JWT (JSON Web Token)

Resources

License

Stars

Watchers

Forks

Packages

No packages published