Closed ea244wmi closed 1 year ago
👋🏻 Could you describe the specific use case where you are validating an ID token using multiple audiences?
For context, the way it's designed at the minute is to specifically validate that the aud
claim contains the specific client_id
registered at the issuer.
https://openid.net/specs/openid-connect-core-1_0.html#IDTokenValidation
Hi! 👋
Firstly, thanks for your work on this project! 🙂
Today I used patch-package to patch
idtoken-verifier@2.2.2
for the project I'm working on.I've noticed
IdTokenVerifier
constructor accepts string foraudience
while it probably should accept string or array of strings.https://github.com/auth0/idtoken-verifier/blob/master/src/index.js#L184-L191
Here is the diff that solved my problem:
This issue body was partially generated by patch-package.