Skip to content

Commit

Permalink
fix: 선언하지 않은 변수 제거 및 누락된 내용 추가, 파일이름 수정[meong-story#92]
Browse files Browse the repository at this point in the history
  • Loading branch information
j2h30728 committed Aug 7, 2024
1 parent 1617446 commit 303bf25
Showing 1 changed file with 2 additions and 1 deletion.
3 changes: 2 additions & 1 deletion src/pages/KakaoLogIn.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -5,6 +5,7 @@ import styled from 'styled-components';
import ROUTE_PATH from '../shared/constants/routePath';
import useKakaoLogin from '../entities/verification/api/useKakaoLogin';
import Spinner from '../shared/ui/Spinner';
import { tokenStorage } from '../shared/lib/tokenStorage';

const KakaoLogIn = () => {
const navigate = useNavigate();
Expand All @@ -16,7 +17,7 @@ const KakaoLogIn = () => {
(async () => {
if (code) {
const data = await mutateAsync(code);
localStorage.setItem('token', data.accessToken);
tokenStorage.setToken(data.accessToken);
navigate(ROUTE_PATH.ROOT);
}
})();
Expand Down

0 comments on commit 303bf25

Please sign in to comment.