Merge branch 'main' into feature/completions

This commit is contained in:
Ola Hungerford 2025-02-21 08:43:32 -07:00 • committed by GitHub
commit b4870b3da3
No known key found for this signature in database
GPG key ID: B5690EEEBB952194

View file

@ -86,9 +86,9 @@ export async function handleOAuthCallback(
const response = await fetch(metadata.token_endpoint, {
method: "POST",
headers: {
"Content-Type": "application/json",
"Content-Type": "application/x-www-form-urlencoded",
},
body: JSON.stringify({
body: new URLSearchParams({
grant_type: "authorization_code",
code,
code_verifier: codeVerifier,
@ -117,9 +117,9 @@ export async function refreshAccessToken(
const response = await fetch(metadata.token_endpoint, {
method: "POST",
headers: {
"Content-Type": "application/json",
"Content-Type": "application/x-www-form-urlencoded",
},
body: JSON.stringify({
body: new URLSearchParams({
grant_type: "refresh_token",
refresh_token: refreshToken,
}),