1
1
import MonstersImg from '@/assets/images/img_login_monsters.svg' ;
2
2
import KaKaoImg from '@/assets/images/img_login_kakao.svg' ;
3
- import GoogleImg from '@/assets/images/img_login_google.svg' ;
3
+ // import GoogleImg from '@/assets/images/img_login_google.svg';
4
4
import LogoTextImg from '@/assets/logos/text_logo_l.svg' ;
5
5
import { type NextPage } from 'next' ;
6
6
import { useGetGoogleToken , useGetKakaoToken } from '@/hooks/queries/login' ;
@@ -10,15 +10,15 @@ const LoginPage: NextPage = () => {
10
10
const router = useRouter ( ) ;
11
11
12
12
const kakaoURL = `https://kauth.kakao.com/oauth/authorize?client_id=${ process . env . NEXT_PUBLIC_KAKAO_API_KEY } &redirect_uri=${ process . env . NEXT_PUBLIC_KAKAO_REDIRECT_URI } &response_type=code` ;
13
- const googleURL = `https://accounts.google.com/o/oauth2/v2/auth?client_id=${ process . env . NEXT_PUBLIC_GOOGLE_API_KEY } &redirect_uri=${ process . env . NEXT_PUBLIC_GOOGLE_REDIRECT_URI } &response_type=code&scope=email&access_type=offline` ;
13
+ // const googleURL = `https://accounts.google.com/o/oauth2/v2/auth?client_id=${process.env.NEXT_PUBLIC_GOOGLE_API_KEY}&redirect_uri=${process.env.NEXT_PUBLIC_GOOGLE_REDIRECT_URI}&response_type=code&scope=email&access_type=offline`;
14
14
15
15
const handleKaKaoClick : ( ) => void = ( ) => {
16
16
window . location . href = `${ kakaoURL } &type=kakao` ;
17
17
} ;
18
18
19
- const handleGoogleClick : ( ) => void = ( ) => {
20
- window . location . href = `${ googleURL } &type=google` ;
21
- } ;
19
+ // const handleGoogleClick: () => void = () => {
20
+ // window.location.href = `${googleURL}&type=google`;
21
+ // };
22
22
23
23
const { code, scope } = router . query ;
24
24
@@ -43,7 +43,7 @@ const LoginPage: NextPage = () => {
43
43
< div className = "flex-1 w-[96px] h-[1px] bg-gray6" > </ div >
44
44
</ div >
45
45
< div className = "flex gap-[20px]" >
46
- < GoogleImg onClick = { handleGoogleClick } />
46
+ { /* <GoogleImg onClick={handleGoogleClick} /> */ }
47
47
< KaKaoImg onClick = { handleKaKaoClick } />
48
48
</ div >
49
49
</ div >
0 commit comments