✋🏻gif가 로딩중이에요!

const firebaseConfig = {
apiKey: '',
authDomain: '',
projectId: '',
storageBucket: '',
messagingSenderId: '',
appId: '',
measurementId: '',
};
export const auth = getAuth(app);
import { app } from '@src/firebaseConfig';
import { useQuery } from '@tanstack/react-query';
import { getAuth, GoogleAuthProvider, signInWithPopup } from 'firebase/auth';
const loginWithGoogle = async () => {
const provider = new GoogleAuthProvider();
return (await signInWithPopup(getAuth(app), provider)).user;
};
export default () =>
useQuery(['userInfo'], loginWithGoogle, {
staleTime: Infinity,
cacheTime: Infinity,
enabled: false,
});
import { useCookies } from 'react-cookie';
export default () => {
const [cookies, setCookie] = useCookies(['uid']);
const me = cookies.uid;
return me;
};
//mypage 컴포넌트
const me = useIsLogin(); //로그인 유무 확인