Skip to content

Commit

Permalink
로그인 버튼 클릭 시 redirectURI 절대 경로 설정 (SWYP-team-2th#127)
Browse files Browse the repository at this point in the history
  • Loading branch information
YOOJS1205 committed Feb 28, 2025
1 parent b6a559c commit 90bbac6
Showing 1 changed file with 1 addition and 2 deletions.
3 changes: 1 addition & 2 deletions src/components/login/button/LoginButton.tsx
Original file line number Diff line number Diff line change
@@ -1,8 +1,7 @@
import { Button } from '@/components/common/Button/Button';

export default function LoginButton() {
const KAKAO_AUTH_URL = `https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=${import.meta.env.VITE_KAKAO_CLIENT_ID}&redirect_uri=${import.meta.env.VITE_KAKAO_REDIRECT_URI}`;

const KAKAO_AUTH_URL = `https://kauth.kakao.com/oauth/authorize?response_type=code&client_id=${import.meta.env.VITE_KAKAO_CLIENT_ID}&redirect_uri=${window.location.origin}/oauth`;
const handleLogin = () => {
window.location.href = KAKAO_AUTH_URL;
};
Expand Down

0 comments on commit 90bbac6

Please sign in to comment.