mirror of
https://github.com/discordjs/discord.js.git
synced 2026-03-19 13:03:31 +01:00
fix(OAuth2API): enable token exchange without token (#10312)
Co-authored-by: kodiakhq[bot] <49736102+kodiakhq[bot]@users.noreply.github.com>
This commit is contained in:
@@ -47,6 +47,7 @@ export class OAuth2API {
|
|||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
},
|
},
|
||||||
|
auth: false,
|
||||||
signal,
|
signal,
|
||||||
}) as Promise<RESTPostOAuth2AccessTokenResult>;
|
}) as Promise<RESTPostOAuth2AccessTokenResult>;
|
||||||
}
|
}
|
||||||
@@ -68,6 +69,7 @@ export class OAuth2API {
|
|||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
},
|
},
|
||||||
|
auth: false,
|
||||||
signal,
|
signal,
|
||||||
}) as Promise<RESTPostOAuth2RefreshTokenResult>;
|
}) as Promise<RESTPostOAuth2RefreshTokenResult>;
|
||||||
}
|
}
|
||||||
@@ -91,6 +93,7 @@ export class OAuth2API {
|
|||||||
headers: {
|
headers: {
|
||||||
'Content-Type': 'application/x-www-form-urlencoded',
|
'Content-Type': 'application/x-www-form-urlencoded',
|
||||||
},
|
},
|
||||||
|
auth: false,
|
||||||
signal,
|
signal,
|
||||||
}) as Promise<RESTPostOAuth2ClientCredentialsResult>;
|
}) as Promise<RESTPostOAuth2ClientCredentialsResult>;
|
||||||
}
|
}
|
||||||
|
|||||||
Reference in New Issue
Block a user