Add support for urlsafe base64 in decode_jwt.
This commit is contained in:
parent
78ea5dc244
commit
b0a2086b6c
@ -5,4 +5,4 @@ set -euo pipefail
|
||||
IFS=$'\n\t'
|
||||
DIR="$( cd "$( dirname "${BASH_SOURCE[0]}" )" && pwd )"
|
||||
|
||||
exec jq -R 'split(".") | .[0],.[1] | @base64d | fromjson'
|
||||
exec jq -R 'split(".") | .[0],.[1] | gsub("-"; "+") | gsub("_"; "/") | gsub("%3D"; "=")| @base64d | fromjson'
|
||||
|
Loading…
x
Reference in New Issue
Block a user