1.0.0 • Published 7 years ago
@clarketm/jwt-utils v1.0.0
jwt-utils
Command line utilities for working with JSON Web Tokens (JWT).
Installation
Yarn
yarn global add "@clarketm/jwt-utils"Npm
npm install --global "@clarketm/jwt-utils"Demo

Usage
sign [options] payload secret
$ jwt sign '{"user": "Travis Clarke"}' "super secret"copied to clipboard:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhIjoxLCJpYXQiOjE1MjczMTI3NTIsImV4cCI6MTUyNzMxNjM1Mn0.2l4wyaoxNBBY7nvm6sAqAcmXSuuKjBubNo_h42hcigUNote: the
signsubcommand accepts all the same options asauth0/node-jsonwebtokenwith the exception ofmutatePayloadwhich is not applicable.
verify [options] token secret
$ jwt verify "eyJhbGciOiJIUzI1..." "super secret"valid!Note: the
verifysubcommand accepts all the same options asauth0/node-jsonwebtoken
decode [options] token
$ jwt decode "eyJhbGciOiJIUzI1..."copied to clipboard:
a: 1
iat: 1527312832
exp: 1527316432Note: the
decodesubcommand accepts all the same options asauth0/node-jsonwebtokenwith the exception ofjsonwhich is not applicable.
Related
- node-jsonwebtoken – JsonWebToken implementation for node.js
License
MIT © Travis Clarke