From 0434b3834b2e4a68c57951ccdbe23b365e23040d Mon Sep 17 00:00:00 2001 From: dvp-tae Date: Wed, 25 Sep 2024 12:48:30 +0900 Subject: [PATCH] =?UTF-8?q?fix:=20kakao=20service-terms=20=ED=8C=8C?= =?UTF-8?q?=EB=9D=BC=EB=AF=B8=ED=84=B0=20=EC=88=98=EC=A0=95:?= MIME-Version: 1.0 Content-Type: text/plain; charset=UTF-8 Content-Transfer-Encoding: 8bit --- src/pages/kakao/containers/RegisterButtonSection.tsx | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/src/pages/kakao/containers/RegisterButtonSection.tsx b/src/pages/kakao/containers/RegisterButtonSection.tsx index d6f216c9..8c751327 100644 --- a/src/pages/kakao/containers/RegisterButtonSection.tsx +++ b/src/pages/kakao/containers/RegisterButtonSection.tsx @@ -3,11 +3,9 @@ import { KakaoButton } from '@/components/Logo/KakaoButton'; const rest_api_key = import.meta.env.VITE_REST_API_KEY; const redirect_uri = import.meta.env.VITE_REDIRECT_URI; -const TAG1 = 'ussum_001'; -const TAG2 = 'ussum_002'; -const TAG3 = 'ussum_003'; +const TAG = ['ussum_001', 'ussum_002', 'ussum_003']; -const KAKAO_AUTH_URL = `https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=${rest_api_key}&redirect_uri=${redirect_uri}&service_terms=${[TAG1, TAG2, TAG3].join(',')}`; +const KAKAO_AUTH_URL = `https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=${rest_api_key}&redirect_uri=${redirect_uri}&service_terms=${TAG}`; const handleLogin = () => { window.location.href = KAKAO_AUTH_URL;