Fix typo and add script output to comments

Fixed a typo in the description comment and added
the script's output to the comment as well to have
the results saved somewhere.
This commit is contained in:
c47 2023-10-30 08:16:01 +01:00
parent c8c324d8ec
commit 7df20ceb47

View file

@ -17,7 +17,31 @@
#
# a solution with pure jq was provided where they replace characters which was found to be good.
# It would be easy to replace the characters with sed, but I currently don't know if that really
# gets around the problem with using bse64 from coreutils, so I keep both solutions here.
# gets around the problem with using base64 from coreutils, so I keep both solutions here.
#
# At the time of initialization of this repo and thus this script the sed method prints more information
# then the jq method
# 1) sed method:
#
#{
# "alg": "HS256",
# "typ": "JWT"
#}
#{
# "sub": "1234567890",
# "name": "John Doe",
# "admin": true
#}
#
#
#2) Pure jq method
#
#{
# "sub": "1234567890",
# "name": "John Doe",
# "admin": true
#}
#
JWT=${1:-eyJhbGciOiJIUzI1NiIsInR5cCI6IkpXVCJ9.eyJzdWIiOiIxMjM0NTY3ODkwIiwibmFtZSI6IkpvaG4gRG9lIiwiYWRtaW4iOnRydWV9.TJVA95OrM7E2cBab30RMHrHDcEfxjoYZgeFONFh7HgQ}