Description

A useful example app. You can use this to debug your tokens on the command line. This is also a great place to look at how you might use this library.

Example usage: The following will create and sign a token, then verify it and output the original claims.

echo {\"foo\":\"bar\"} | bin/jwt -key test/sample_key -alg RS256 -sign - | bin/jwt -key test/sample_key.pub -verify -

main is referenced in 1 repository

github.com/dgrijalva/jwt-go