diff --git a/src/components/sign/GoogleLogin.tsx b/src/components/sign/GoogleLogin.tsx index 1ec574e..280a2aa 100644 --- a/src/components/sign/GoogleLogin.tsx +++ b/src/components/sign/GoogleLogin.tsx @@ -3,11 +3,10 @@ import React from 'react'; import GoogleLoginButton from '../../../public/images/sign/google-login.svg'; const GoogleLogin = ({ setLoginType }: { setLoginType: (type: 'google') => void }) => { + const handleGoogleLogin = () => { - // loginType을 google로 설정 setLoginType('google'); - // 구글 로그인 페이지로 리다이렉트 - window.location.href = 'https://accounts.google.com/o/oauth2/auth'; + window.location.href = 'https://api.moaguide.com/oauth2/authorization/google'; }; return ( diff --git a/src/components/sign/KakaoLogin.tsx b/src/components/sign/KakaoLogin.tsx index 2560a68..475b594 100644 --- a/src/components/sign/KakaoLogin.tsx +++ b/src/components/sign/KakaoLogin.tsx @@ -3,11 +3,10 @@ import React from 'react'; import KakaoLoginButton from '../../../public/images/sign/kakao-login.svg'; const KakaoLogin = ({ setLoginType }: { setLoginType: (type: 'kakao') => void }) => { + const handleKakaoLogin = () => { - // loginType을 kakao로 설정 setLoginType('kakao'); - // 카카오 로그인 페이지로 리다이렉트 - window.location.href = 'https://kauth.kakao.com/oauth/authorize'; + window.location.href = 'https://api.moaguide.com/oauth2/authorization/kakao'; }; return (