Fix Google Authentication sending [object object] instead of serialized obj

This commit is contained in:
Mo Tarbin
2026-02-09 11:16:22 -05:00
parent d663f047bd
commit 476c9f5840

View File

@@ -182,11 +182,19 @@ const LoginView = () => {
}
try {
const response = await apiClient.post(`/auth/${provider}/callback`, {
const response = await apiClient.post(
`/auth/${provider}/callback`,
JSON.stringify({
provider: provider,
token: getAccessToken(data),
data: data,
})
}),
{
headers: {
'Content-Type': 'application/json',
},
},
)
if (response.ok) {
const responseData = await response.json()