We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
There was an error while loading. Please reload this page.
1 parent e7380c0 commit 0b05217Copy full SHA for 0b05217
lib/helpers/client.js
@@ -92,17 +92,14 @@ async function authFor(endpoint, { clientAssertionPayload } = {}) {
92
case 'private_key_jwt':
93
case 'client_secret_jwt': {
94
const timestamp = now();
95
- const audience = [
96
- ...new Set([this.issuer.issuer, this.issuer.token_endpoint].filter(Boolean)),
97
- ];
98
99
const assertion = await clientAssertion.call(this, endpoint, {
100
iat: timestamp,
101
exp: timestamp + 60,
102
jti: random(),
103
iss: this.client_id,
104
sub: this.client_id,
105
- aud: audience,
+ aud: this.issuer.issuer,
106
...clientAssertionPayload,
107
});
108
0 commit comments