fix: Explicitly declare accpet type to json when exchanging oauth token (#801)

This commit is contained in:
Jonathan Wang 2025-07-24 20:50:54 +08:00 • committed by GitHub
commit 62c608d8ce
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -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,