Skip to content

Commit

Permalink
Chore: 원래 코드로
Browse files Browse the repository at this point in the history
  • Loading branch information
usernamebuzz committed Nov 30, 2023
1 parent 412ec9f commit 5e619fc
Showing 1 changed file with 1 addition and 8 deletions.
9 changes: 1 addition & 8 deletions src/pages/Login/Redirect.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,21 +5,14 @@ import PageLayout from '../../components/PageLayout/PageLayout';
import CookieHouse from '../../assets/OnboardingAssets/CookieHouse.svg';
import {Description, Wrapper} from './RedirectStyle';
import {useRecoilState} from 'recoil';
import {
userInfoAtom,
initialUserInfoState,
authCodeAtom,
} from '../../atoms/loginStateAtom';
import {userInfoAtom, initialUserInfoState} from '../../atoms/loginStateAtom';
import {useMutation, useQuery, useQueryClient} from '@tanstack/react-query';
import {login} from '@/apis/auth';
import {ILoginResponse} from '@/interfaces/auth';

export default function Redirect() {
const [authCode, setAuthCode] = useRecoilState(authCodeAtom);
let url = new URL(window.location.href);
let code = url.searchParams.get('code');
setAuthCode({authCode: code});

const navigate = useNavigate();
const [userInfo, setUserInfo] = useRecoilState(userInfoAtom);
const state = Math.floor(Math.random() * 100).toString();
Expand Down

0 comments on commit 5e619fc

Please sign in to comment.