Skip to content

Instantly share code, notes, and snippets.

@grizmio
Created August 11, 2022 04:03
Show Gist options
  • Save grizmio/33a03bbfdb4a8d9ace9f2a61ad7627dd to your computer and use it in GitHub Desktop.
Save grizmio/33a03bbfdb4a8d9ace9f2a61ad7627dd to your computer and use it in GitHub Desktop.
jwt show command line
Thanks: https://prefetch.net/blog/2020/07/14/decoding-json-web-tokens-jwts-from-the-linux-command-line/
jq -R 'split(".") | .[0],.[1] | @base64d | fromjson' <<< $(cat "${JWT}")
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment