Discussions
How to resolve the Script:ReferenceError: jwt is not defined using SA 1013484?
After executing the step Get JSRSASIGN which is successful
The script Get Access Token (Generate JWT) [with comments] fails
with There was an error in evaluating the Pre-request Script:ReferenceError: jwt is not defined
It fails at this line
let signedJWT = KJUR.jws.JWS.sign('PS256',stringifiedJwtHeader,stringifiedJwtPayload,secret);
All variables haver correct values.
I have noticed other code examples load the code into variables. <name>_code
and then use <name>.function.
Anyway, it is not finding the KJUR.jws.JWS.sign