From 62c608d8cef50de5b78a99b8db554f6dbc4b0b77 Mon Sep 17 00:00:00 2001 From: Jonathan Wang Date: Thu, 24 Jul 2025 20:50:54 +0800 Subject: [PATCH] fix: Explicitly declare accpet type to json when exchanging oauth token (#801) --- src/client/auth.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/auth.ts b/src/client/auth.ts index b5a3a6a4..278bc1b4 100644 --- a/src/client/auth.ts +++ b/src/client/auth.ts @@ -774,6 +774,7 @@ export async function exchangeAuthorization( // Exchange code for tokens const headers = new Headers({ "Content-Type": "application/x-www-form-urlencoded", + "Accept": "application/json", }); const params = new URLSearchParams({ grant_type: grantType,