From 19664468f56b98fd2eee20caece65701ea792948 Mon Sep 17 00:00:00 2001 From: Jeonghyun Date: Mon, 23 Sep 2024 08:27:14 +0900 Subject: [PATCH] =?UTF-8?q?#328=20remove:=20=EB=B6=88=ED=95=84=EC=9A=94=20?= =?UTF-8?q?=EC=BD=94=EB=93=9C=20=EC=82=AD=EC=A0=9C?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/TopNavigation/TopNavigation.jsx | 13 ------------- 1 file changed, 13 deletions(-) diff --git a/src/components/TopNavigation/TopNavigation.jsx b/src/components/TopNavigation/TopNavigation.jsx index e8c3f7b..9e51cf7 100644 --- a/src/components/TopNavigation/TopNavigation.jsx +++ b/src/components/TopNavigation/TopNavigation.jsx @@ -58,19 +58,6 @@ export default function TopNavigation({ eventTitle } = {}) { window.location.href = `${process.env.REACT_APP_GOOGLE_OAUTH_BASE_URL}/o/oauth2/auth?client_id=${process.env.REACT_APP_GOOGLE_OAUTH_CLIENT_ID}&redirect_uri=${process.env.REACT_APP_CLIENT_BASE_URL}/loading&response_type=code&scope=https://www.googleapis.com/auth/userinfo.email https://www.googleapis.com/auth/userinfo.profile`; }; - const handleLogout = async () => { - try { - await axiosInstance.get(`/api/v1/logout`); - sessionStorage.clear(); - alert('로그아웃이 완료되었습니다.'); - } catch (error) { - console.log(error); - } finally { - nav('/'); - window.location.reload(); - } - }; - return (