mirror of
https://github.com/RetroDECK/RetroDECK-Discord-Bot.git
synced 2026-04-21 12:06:40 +00:00
Update OAuth token request to use application/x-www-form-urlencoded content type
This commit is contained in:
parent
0a5dadb610
commit
651e2ae142
|
|
@ -70,8 +70,8 @@ const server = http.createServer(async (req, res) => {
|
|||
|
||||
const tokenResponse = await fetch('https://opencollective.com/oauth/token', {
|
||||
method: 'POST',
|
||||
headers: { 'Content-Type': 'application/json' },
|
||||
body: JSON.stringify({
|
||||
headers: { 'Content-Type': 'application/x-www-form-urlencoded' },
|
||||
body: new URLSearchParams({
|
||||
grant_type: 'authorization_code',
|
||||
client_id: CLIENT_ID,
|
||||
client_secret: CLIENT_SECRET,
|
||||
|
|
|
|||
Loading…
Reference in a new issue