kubezero/scripts/decode_jwt.sh

4 lines
75 B
Bash

#!/bin/bash
jq -R 'split(".") | .[1] | @base64d | fromjson' <<< $(cat $1)