Skip to content

Instantly share code, notes, and snippets.

@bhearsum
Created September 30, 2020 19:16
Show Gist options
  • Save bhearsum/7e3f7e573ba7cab92c8867a3c0bf173f to your computer and use it in GitHub Desktop.
Save bhearsum/7e3f7e573ba7cab92c8867a3c0bf173f to your computer and use it in GitHub Desktop.
function jwt-decode() {
sed 's/\./\n/g' <<< $(cut -d. -f1,2 <<< $1) | base64 --decode | jq
}
JWT=""
jwt-decode $JWT
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment