From 8a39dd331679bb24802be780a589e4c6f887c2d7 Mon Sep 17 00:00:00 2001 From: Jonathan Wang Date: Wed, 23 Jul 2025 18:06:20 +0800 Subject: [PATCH] fix: Explicitly declare accpet type to json when exchanging oauth token --- src/client/auth.ts | 1 + 1 file changed, 1 insertion(+) diff --git a/src/client/auth.ts b/src/client/auth.ts index b5a3a6a43..278bc1b4c 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,