File tree Expand file tree Collapse file tree
Expand file tree Collapse file tree Original file line number Diff line number Diff line change 1- // import { useEffect } from 'react';
2- // import { useKakaoLogin } from '@/screen/auth/api';
3- // import { LoginBg } from '@/assets/image';
4-
5- // import Loader from '@/shared/ui/Loader';
6-
7- // export default function AuthScreen() {
8- // const params = new URLSearchParams(location.search);
9- // const code = params.get('code');
10-
11- // const { mutate } = useKakaoLogin();
12-
13- // useEffect(() => {
14- // if (code) mutate({ code });
15- // }, [code, mutate]);
16-
171import { useEffect } from 'react' ;
182import { useSetAtom } from 'jotai' ;
193import { useKakaoLogin } from '@/screen/auth/api' ;
@@ -35,6 +19,7 @@ export default function AuthScreen() {
3519
3620 useEffect ( ( ) => {
3721 if ( data ) {
22+ console . log ( '로그인 성공' , data ) ;
3823 if ( data . signedUp ) {
3924 const kakaoAccessToken = data . tokenDto . accessToken ;
4025 setUserToken ( {
You can’t perform that action at this time.
0 commit comments