Created
February 15, 2024 16:02
-
-
Save ejohn20/6e228c5bac42f314705ff9b619882599 to your computer and use it in GitHub Desktop.
JWT Decode Shortcuts
This file contains 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
jwt-decode() { | |
jq -R 'split(".") | .[1] | @base64d | fromjson' <<<"$1" | |
} | |
jwt-header-decode() { | |
jq -R 'split(".") | .[0] | @base64d | fromjson' <<<"$1" | |
} |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment