You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Versions
Which version of aws-jwt-verify are you using? 4.0.1
Are you using the library in Node.js or in the Web browser? Node.js
If Node.js, which version of Node.js are you using? (Should be at least 16) 20
If Web browser, which web browser and which version of it are you using? N/A
If using TypeScript, which version of TypeScript are you using? (Should be at least 4) High enough
To Reproduce
If you can, please provide a minimal code example that reproduces the bug.
The text was updated successfully, but these errors were encountered:
ottokruse
changed the title
[BUG] JwtRsaVerifier throws an error for JWTs that have no iss field: error: Missing Issuer. Expected: null
[Feacture Request] Support creating JwtVerifier for issuer nullJan 2, 2025
Describe the bug
The
JwtRsaVerifier
throws an error for JWTs that have noiss
field:error: Missing Issuer. Expected: null
But
iss
is an optional field. And in this case I am creating the verifier like so, settingissuer
tonull
to signal that I don't want to check it:It looks like the error is, that the JWK caching mechanism is based on
iss
(makes sense in principle) but cannot handle missingiss
:aws-jwt-verify/src/jwt-rsa.ts
Line 647 in 8bb9b6e
Versions
Which version of
aws-jwt-verify
are you using? 4.0.1Are you using the library in Node.js or in the Web browser? Node.js
If Node.js, which version of Node.js are you using? (Should be at least 16) 20
If Web browser, which web browser and which version of it are you using? N/A
If using TypeScript, which version of TypeScript are you using? (Should be at least 4) High enough
To Reproduce
If you can, please provide a minimal code example that reproduces the bug.
The text was updated successfully, but these errors were encountered: