Skip to content

Commit 9b07036

Browse files
fix(OAuth2API): enable token exchange without token (discordjs#10312)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
1 parent c1e6890 commit 9b07036

File tree

1 file changed

+3
-0
lines changed

1 file changed

+3
-0
lines changed

packages/core/src/api/oauth2.ts

Lines changed: 3 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -47,6 +47,7 @@ export class OAuth2API {
4747
headers: {
4848
'Content-Type': 'application/x-www-form-urlencoded',
4949
},
50+
auth: false,
5051
signal,
5152
}) as Promise<RESTPostOAuth2AccessTokenResult>;
5253
}
@@ -68,6 +69,7 @@ export class OAuth2API {
6869
headers: {
6970
'Content-Type': 'application/x-www-form-urlencoded',
7071
},
72+
auth: false,
7173
signal,
7274
}) as Promise<RESTPostOAuth2RefreshTokenResult>;
7375
}
@@ -91,6 +93,7 @@ export class OAuth2API {
9193
headers: {
9294
'Content-Type': 'application/x-www-form-urlencoded',
9395
},
96+
auth: false,
9497
signal,
9598
}) as Promise<RESTPostOAuth2ClientCredentialsResult>;
9699
}

0 commit comments

Comments
 (0)