Skip to content

Commit

Permalink
#328 remove: 불필요 코드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
hanjeonghyun committed Sep 22, 2024
1 parent f35b6d5 commit 1966446
Showing 1 changed file with 0 additions and 13 deletions.
13 changes: 0 additions & 13 deletions src/components/TopNavigation/TopNavigation.jsx
Original file line number Diff line number Diff line change
Expand Up @@ -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 (
<S.TopNavigation>
<S.LogoMenuWrapper>
Expand Down

0 comments on commit 1966446

Please sign in to comment.