It turns out that my code had a bug where I was not hex-encoding the bodyHash in the JWT. Now that I am setting the bodyHash with a hex-encoded value, I am getting a proper JSON response back - but now, the response says this { “message”: “jwt malformed”, “code”: -1}. Trying to figure out what is wrong with the JWT now.
Best,
AJ
Turns out my issue was that I was using base64 encoding instead of base64url encoding. That seems to have resolved my issue. Since there were no C++ example, I just followed what was in the “Autheticate (Authenticate)” documentation (which says base64 encoding) - it might help someone else in the future if it is changed to base64url encoding.