fix: change accessToken case

This commit is contained in:
Sosokker 2025-04-03 18:04:49 +07:00
parent 3100edb097
commit 8c63c8d047

View File

@ -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");