Skip to content

Commit 62c608d

Browse files
fix: Explicitly declare accpet type to json when exchanging oauth token (#801)
1 parent 8316825 commit 62c608d

File tree

1 file changed

+1
-0
lines changed

1 file changed

+1
-0
lines changed

src/client/auth.ts

Lines changed: 1 addition & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -774,6 +774,7 @@ export async function exchangeAuthorization(
774774
// Exchange code for tokens
775775
const headers = new Headers({
776776
"Content-Type": "application/x-www-form-urlencoded",
777+
"Accept": "application/json",
777778
});
778779
const params = new URLSearchParams({
779780
grant_type: grantType,

0 commit comments

Comments
 (0)