From 2da76c1bf303861b0d025ec443ee2f51740020cf Mon Sep 17 00:00:00 2001 From: =?UTF-8?q?=EC=A0=95=ED=98=84=EC=A1=B0?= Date: Thu, 19 Sep 2024 08:18:22 +0900 Subject: [PATCH] =?UTF-8?q?Test:=20=EB=A6=AC=ED=94=84=EB=A0=88=EC=8B=9C=20?= =?UTF-8?q?=ED=86=A0=ED=81=B0=20=EC=9E=AC=EB=B0=9C=EA=B8=89=20=ED=85=8C?= =?UTF-8?q?=EC=8A=A4=ED=8A=B8=20=EC=99=84=EB=A3=8C=20=ED=9B=84=20=EC=A0=9C?= =?UTF-8?q?=EA=B1=B0?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- frontend/src/pages/Home.tsx | 23 +---------------------- 1 file changed, 1 insertion(+), 22 deletions(-) diff --git a/frontend/src/pages/Home.tsx b/frontend/src/pages/Home.tsx index eedcb80..a59fe75 100644 --- a/frontend/src/pages/Home.tsx +++ b/frontend/src/pages/Home.tsx @@ -3,7 +3,7 @@ import { Link } from 'react-router-dom'; import GoogleLogo from '@/assets/icons/web_neutral_rd_ctn@1x.png'; import useAuthStore from '@/stores/useAuthStore'; import { Button } from '@/components/ui/button'; -import { getProfile, reissueToken } from '@/api/authApi'; +import { getProfile } from '@/api/authApi'; const BASE_URL = import.meta.env.VITE_API_URL; export default function Home() { @@ -20,18 +20,6 @@ export default function Home() { const handleGoogleSignIn = () => { window.location.href = `${BASE_URL}/api/login/oauth2/authorization/google`; }; - const handleReissueToken = async () => { - try { - const response = await reissueToken(); - console.log('토큰 재발급 성공:', response); - alert('토큰 재발급 성공! 새로운 액세스 토큰을 콘솔에서 확인하세요.'); - } catch (error) { - console.error('토큰 재발급 실패:', error); - alert('토큰 재발급에 실패했습니다. 다시 시도해 주세요.'); - } - }; - - const isHidden = true; return (
@@ -85,15 +73,6 @@ export default function Home() { > 시작하기 - )}