4 ms·
I found these aliases online and have found them quite useful. Requires jq. # JWT Payload. Provide the JWT as the argument e.g. jwtp "$JWT" alias jwtp="jq -R
by afrodc_ 6y ago
I found these aliases online and have found them quite useful. Requires jq.
# JWT Payload. Provide the JWT as the argument e.g. jwtp "$JWT"
alias jwtp="jq -R 'split(\".\") | .[1] | @base64d | fromjson' <<<"
# JWT Header. Provide the JWT as the argument e.g. jwth "$JWT"
alias jwth="jq -R 'split(\".\") | .[0] | @base64d | fromjson' <<<"