From 651e2ae14231e087e6e414455a15cd78e891cb19 Mon Sep 17 00:00:00 2001 From: Adam Iannazzone <46025473+jiannazzone@users.noreply.github.com> Date: Sat, 7 Feb 2026 15:46:22 -0500 Subject: [PATCH] Update OAuth token request to use application/x-www-form-urlencoded content type --- src/setup-oauth.js | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/setup-oauth.js b/src/setup-oauth.js index 3d331f2..0a2135e 100644 --- a/src/setup-oauth.js +++ b/src/setup-oauth.js @@ -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,