9 lines
198 B
Bash
9 lines
198 B
Bash
|
#!/usr/bin/env bash
|
||
|
#
|
||
|
# Decode the contents of a JWT
|
||
|
set -euo pipefail
|
||
|
IFS=$'\n\t'
|
||
|
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||
|
|
||
|
exec jq -R 'split(".") | .[0],.[1] | @base64d | fromjson'
|