3 ms·
A JWT is not encrypted but signed. The payload, eyJkYXRhIjoiSGVsbG8ifQ, is just in base64. The signature probably doesn’t match. It looks like GPT-4 returned a
by speedgoose 4y ago
A JWT is not encrypted but signed. The payload, eyJkYXRhIjoiSGVsbG8ifQ, is just in base64. The signature probably doesn’t match.
It looks like GPT-4 returned a very common JSON {"data":"hello"} in base64 with some random and wrong signature.
Did you ask for a JWT before in the context ? It’s weird that it didn’t provide a JWE document.
- dnadler 4y agoThat's the full context I gave it. JWT.io verified the signature as correct when I gave it the secret that I provided to GPT4 Actually, nevermind. jwt.io changed the signature in the JWT when I copied in the secret. So, chalk this one up to user error.