From 8c63c8d047600cf3de49fd6f9fa09bde716fd5e2 Mon Sep 17 00:00:00 2001 From: Sosokker Date: Thu, 3 Apr 2025 18:04:49 +0700 Subject: [PATCH] fix: change accessToken case --- frontend/app/auth/signin/google-oauth.tsx | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/frontend/app/auth/signin/google-oauth.tsx b/frontend/app/auth/signin/google-oauth.tsx index 92d10e4..16fa0da 100644 --- a/frontend/app/auth/signin/google-oauth.tsx +++ b/frontend/app/auth/signin/google-oauth.tsx @@ -22,7 +22,7 @@ export function GoogleSigninButton() { const exchangeRes = await fetch(`${process.env.NEXT_PUBLIC_API_URL || "http://localhost:8000"}/oauth/exchange`, { method: "POST", headers: { "Content-Type": "application/json" }, - body: JSON.stringify({ access_token: credentialResponse.credential }), + body: JSON.stringify({ accessToken: credentialResponse.credential }), }); if (!exchangeRes.ok) { throw new Error("Exchange token request failed");