JWT-Decode is a json web token decoder
Get the tool via
go get github.com/snamber/jwt-decodeUse either by piping a token into jwt-decode
echo eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjMwOTg2MTMsIk5hbWUiOiJ0ZXN0IiwiS2luZCI6MH0.moBp8MqKCi | jwt-decodeor by specifying the token as command line parameter
jwt-decode -token eyJhbGciOiJSUzI1NiIsInR5cCI6IkpXVCJ9.eyJleHAiOjE1MjMwOTg2MTMsIk5hbWUiOiJ0ZXN0IiwiS2luZCI6MH0.moBp8MqKCiboth will print the following
Use the flag -datetime to print the exp expiration date in datetime format:

