From d610dbb77c56303d04e48a1b7302e239172decbc Mon Sep 17 00:00:00 2001 From: YOOJS1205 Date: Tue, 13 Feb 2024 18:44:22 +0900 Subject: [PATCH] =?UTF-8?q?setState=20=EC=A3=BC=EC=84=9D=20=EC=B2=98?= =?UTF-8?q?=EB=A6=AC?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/app/login/page.tsx | 4 ++-- 1 file changed, 2 insertions(+), 2 deletions(-) diff --git a/src/app/login/page.tsx b/src/app/login/page.tsx index 25ffc5c3..c4919bcd 100644 --- a/src/app/login/page.tsx +++ b/src/app/login/page.tsx @@ -22,7 +22,7 @@ const APPLE_REDIRECT_URI = : `${process.env.NEXT_PUBLIC_LOCAL_DOMAIN}/login`; export default function Page() { - const [code, setCode] = useState(''); + const [code] = useState(''); const { mutate: appleLogin } = useAppleLogin(); useEffect(() => { @@ -40,7 +40,7 @@ export default function Page() { event.preventDefault(); const customEvent = event as CustomEvent; console.log(customEvent.detail); - setCode(customEvent.detail.authorization.id_token); + // setCode(customEvent.detail.authorization.id_token); }; // Apple 로그인 실패 이벤트 리스너 등록