fix: oauth2 audience not sent (#10)

This commit is contained in:
James Cleverley-Prance
2025-05-29 15:06:24 +01:00
committed by GitHub
parent d07272003b
commit 79362c81e5

View File

@@ -41,7 +41,7 @@ export async function getAccessToken(
};
if (scope) httpRequest.body!.form.push({ name: 'scope', value: scope });
if (scope) httpRequest.body!.form.push({ name: 'audience', value: audience });
if (audience) httpRequest.body!.form.push({ name: 'audience', value: audience });
if (credentialsInBody) {
httpRequest.body!.form.push({ name: 'client_id', value: clientId });