From 0c09c78a65ac548fad82d48bc5d42329c27ce723 Mon Sep 17 00:00:00 2001 From: YearaChoi <22200750@handong.ac.kr> Date: Sun, 4 Aug 2024 03:11:37 +0900 Subject: [PATCH] =?UTF-8?q?feat:=20=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EB=AA=A8?= =?UTF-8?q?=EB=8B=AC=20=EC=B9=B4=EC=B9=B4=EC=98=A4=20=EB=B2=84=ED=8A=BC=20?= =?UTF-8?q?=ED=81=B4=EB=A6=AD=EC=8B=9C=20redirect=20url=EB=A1=9C=20?= =?UTF-8?q?=EC=9D=B4=EB=8F=99=20(=EB=A1=9C=EA=B7=B8=EC=9D=B8=20=EA=B5=AC?= =?UTF-8?q?=ED=98=84=EC=9D=80=20=EC=95=84=EC=A7=81=20=EC=95=88=20=EB=90=A8?= =?UTF-8?q?)?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/components/MainPage/LoginModal.jsx | 8 ++++++++ 1 file changed, 8 insertions(+) diff --git a/src/components/MainPage/LoginModal.jsx b/src/components/MainPage/LoginModal.jsx index 6588aa2..3c15e3c 100644 --- a/src/components/MainPage/LoginModal.jsx +++ b/src/components/MainPage/LoginModal.jsx @@ -5,6 +5,13 @@ import googleLoginBtn from "../../assets/img/googleLoginBtn.svg"; import kakaoLoginBtn from "../../assets/img/kakaoLoginBtn.svg"; function LoginModal({ toggleModal }) { + const handleKakaoLogin = () => { + const REST_API_KEY = process.env.REACT_APP_KAKAO_AUTH_CLIENT_ID; + const REDIRECT_URI = process.env.REACT_APP_KAKAO_AUTH_REDIRECT_URL; + + window.location.href = `https://kauth.kakao.com/oauth/authorize?client_id=${REST_API_KEY}&redirect_uri=${REDIRECT_URI}&response_type=code`; + }; + return ( @@ -24,6 +31,7 @@ function LoginModal({ toggleModal }) { alt="구글 로그인 버튼" >