Created
September 30, 2020 19:16
-
-
Save bhearsum/7e3f7e573ba7cab92c8867a3c0bf173f to your computer and use it in GitHub Desktop.
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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