From 64478c63d8dbd2c4e26649085021affb1c28a68b Mon Sep 17 00:00:00 2001 From: bigmooon Date: Mon, 8 Sep 2025 21:24:52 +0900 Subject: [PATCH] feat: add var to authform --- src/components/Auth/Authform.jsx | 6 +++--- 1 file changed, 3 insertions(+), 3 deletions(-) diff --git a/src/components/Auth/Authform.jsx b/src/components/Auth/Authform.jsx index 10bf472..cd71d82 100644 --- a/src/components/Auth/Authform.jsx +++ b/src/components/Auth/Authform.jsx @@ -13,9 +13,9 @@ const AuthForm = ({ type, onSubmit, setLoginType }) => { const navigate = useNavigate(); const [alertMessage, setAlertMessage] = useState(''); - // const REST_API_KEY = import.meta.env.VITE_KAKAO_REST_API_KEY; - // const REDIRECT_URI = import.meta.env.VITE_KAKAO_REDIRECT_URI; - const KAKAO_AUTH_URL = import.meta.env.VITE_KAKAO_AUTH_URL; + const REST_API_KEY = import.meta.env.VITE_REST_API_KEY; + const REDIRECT_URI = import.meta.env.VITE_REDIRECT_URI; + const KAKAO_AUTH_URL = `https://kauth.kakao.com/oauth/authorize?client_id=${REST_API_KEY}&redirect_uri=${REDIRECT_URI}&response_type=code`; function handleSubmit(e) { e.preventDefault();