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;