From 476c9f584006bc7dae71add5a2166d07fdd476a1 Mon Sep 17 00:00:00 2001 From: Mo Tarbin Date: Mon, 9 Feb 2026 11:16:22 -0500 Subject: [PATCH] Fix Google Authentication sending [object object] instead of serialized obj --- src/views/Authorization/LoginView.jsx | 18 +++++++++++++----- 1 file changed, 13 insertions(+), 5 deletions(-) diff --git a/src/views/Authorization/LoginView.jsx b/src/views/Authorization/LoginView.jsx index aabae5c..f0a1467 100644 --- a/src/views/Authorization/LoginView.jsx +++ b/src/views/Authorization/LoginView.jsx @@ -182,11 +182,19 @@ const LoginView = () => { } try { - const response = await apiClient.post(`/auth/${provider}/callback`, { - provider: provider, - token: getAccessToken(data), - data: data, - }) + 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()