diff --git a/src/api/hooks/useGetLogin.tsx b/src/api/hooks/useGetLogin.tsx index 16622e9..aec25d1 100644 --- a/src/api/hooks/useGetLogin.tsx +++ b/src/api/hooks/useGetLogin.tsx @@ -12,6 +12,7 @@ export const getLoginPath = (code: string) => `${BASE_URL}/google/login/redirect export const getLogin = async ({ code }: AuthResponse): Promise => { try { const response = await axios.get(getLoginPath(code)); + console.log(response.data); return response.data; } catch (error) { console.error('Error during login:', error); diff --git a/src/pages/Login/AuthPage.tsx b/src/pages/Login/AuthPage.tsx index 0124f2f..d334788 100644 --- a/src/pages/Login/AuthPage.tsx +++ b/src/pages/Login/AuthPage.tsx @@ -14,6 +14,7 @@ export const AuthPage = () => { useEffect(() => { if (data && !error) { + console.log('data' + data); sessionStorage.setItem('authToken', data.accessToken); navigate(RouterPath.home); }