We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
1 parent 1dafc92 commit 75174ccCopy full SHA for 75174cc
src/script/src/esi_client.ts
@@ -30,7 +30,7 @@ class ESIClient {
30
const clientId: string = getScriptProperties_().getProperty('CLIENT_ID')!;
31
32
if (jwtToken.iss !== ESIClient.ISSUER) throw 'Access token validation error: invalid issuer';
33
- if (jwtToken.aud !== [clientId, ESIClient.AUDIENCE]) throw 'Access token validation error: invalid audience';
+ if (jwtToken.aud[0] !== clientId || jwtToken.aud[1] !== ESIClient.AUDIENCE) throw 'Access token validation error: invalid audience';
34
if (jwtToken.azp !== clientId) throw 'Access token validation error: invalid authorized party';
35
return jwtToken;
36
}
0 commit comments