From 1c6a32c64c45c3fa8810b77e165b3e77de522c73 Mon Sep 17 00:00:00 2001 From: seung365 Date: Wed, 7 Aug 2024 17:05:43 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=94=94=EB=B2=84=EA=B7=B8=20=EC=BD=94?= =?UTF-8?q?=EB=93=9C=20=EC=B6=94=EA=B0=80?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/api/hooks/useGetLogin.tsx | 1 + src/pages/Login/AuthPage.tsx | 1 + 2 files changed, 2 insertions(+) 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); }