mirror of
https://github.com/discordjs/discord.js.git
synced 2024-08-21 21:54:41 +12: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:
parent
c1e6890132
commit
9b07036d70
1 changed files with 3 additions and 0 deletions
|
@ -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>;
|
||||||
}
|
}
|
||||||
|
|
Loading…
Reference in a new issue