mirror of
https://github.com/ForFarmTeam/ForFarm.git
synced 2025-12-18 13:34:08 +01:00
fix: change accessToken case
This commit is contained in:
parent
3100edb097
commit
8c63c8d047
@ -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");
|
||||
|
||||
Loading…
Reference in New Issue
Block a user