mirror of
https://github.com/ForFarmTeam/ForFarm.git
synced 2025-12-18 21:44: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`, {
|
const exchangeRes = await fetch(`${process.env.NEXT_PUBLIC_API_URL || "http://localhost:8000"}/oauth/exchange`, {
|
||||||
method: "POST",
|
method: "POST",
|
||||||
headers: { "Content-Type": "application/json" },
|
headers: { "Content-Type": "application/json" },
|
||||||
body: JSON.stringify({ access_token: credentialResponse.credential }),
|
body: JSON.stringify({ accessToken: credentialResponse.credential }),
|
||||||
});
|
});
|
||||||
if (!exchangeRes.ok) {
|
if (!exchangeRes.ok) {
|
||||||
throw new Error("Exchange token request failed");
|
throw new Error("Exchange token request failed");
|
||||||
|
|||||||
Loading…
Reference in New Issue
Block a user