fix: use user-provided JWT generation logic

Replaced my bash implementation with the user's provided snippet.
Key differences that fix the bad credentials issue on macOS:
1. Uses openssl enc -base64 -A instead of openssl base64
2. Uses jq -r -c . to strictly format the JSON header/payload
3. Explicitly wraps the RSA signature binary in b64enc.
This commit is contained in:
2026-03-25 22:19:02 -04:00
parent dedb35953b
commit 964cc0de00
2 changed files with 25 additions and 15 deletions
+1 -1
View File
@@ -19,7 +19,7 @@ The following environment variables MUST be set before invoking this skill:
If any variable is missing, stop and tell the user which ones are required.
Requires `openssl`, `curl`, and `grep` (standard on macOS and Linux).
Requires `openssl`, `curl`, `grep`, and `jq` (standard on modern environments).
## Steps