This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
#!/usr/bin/env bash | |
# | |
# usage: JWT_SECRET="silly" mk-jwt-token | |
# @WARN: modify the payload and header to your needs. | |
# | |
main(){ | |
set -eo pipefail | |
[ -n "$JWT_SECRET" ] || die "JWT_SECRET environment variable is not set." |