Skip to content
master
Go to file
Code

Latest commit

 

Git stats

Files

Permalink
Failed to load latest commit information.
Type
Name
Latest commit message
Commit time
 
 
 
 
 
 
 
 
 
 

README.md

jwt-token-generator

Generate JWT Token using Unix command line tools

Installation

Source

$ git clone "https://github.com/clarketm/jwt-token-generator.git"
$ cd jwt-token-generator && sudo sh install.sh

Usage

#########################################
#### jwt <header> <payload> <secret> ####
#########################################

$ jwt '{"alg":"HS256","typ":"JWT"}' '{"aud":"mobile","exp":1470646848,"iss":"token.service","sub":"travis"}' 'secreto'

Output

copied to clipboard!

JWT token:
eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhdWQiOiJtb2JpbGUiLCJleHAiOjE0NzA2NDY4NDgsImlzcyI6InRva2VuLnNlcnZpY2UiLCJzdWIiOiJ0cmF2aXMifQ.CaXRXQO2bW/i+69zExHEG0r3riHG82jl8bv73BqK2qs
You can’t perform that action at this time.