CLI tool for encoding/decoding JWT tokens.
$ brew tap goware/tap
$ brew install jwtutil
$ jwtutil
or
$ docker run ghcr.io/goware/jwtutil
or
$ go install github.com/goware/jwtutil@latest
$ jwtutil -secret=besafe -encode
$ jwtutil -secret=besafe -encode -exp=1585272657
$ jwtutil -secret=besafe -encode -exp $(date +%s --date='5 days')
$ jwtutil -secret=besafe -encode -claims='{"account":1234}'
$ jwtutil -secret=besafe -decode -token='eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJhY2NvdW50IjoxMjM0fQ.WrPyTSoovFETG6pW0wFepaAv9-VTIfeSHU5imhPqs7g'
MIT