Skip to content

Commit

Permalink
Merge pull request #159 from ssu-student-union/feat/#158_kakao-servic…
Browse files Browse the repository at this point in the history
…esterms

fix: kakao service-terms 파라미터 수정:
  • Loading branch information
dvp-tae authored Sep 25, 2024
2 parents b84dc57 + 0434b38 commit 94107df
Showing 1 changed file with 2 additions and 4 deletions.
6 changes: 2 additions & 4 deletions src/pages/kakao/containers/RegisterButtonSection.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -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;
Expand Down

0 comments on commit 94107df

Please sign in to comment.