Skip to content

Commit

Permalink
feat: 디버그 코드 추가
Browse files Browse the repository at this point in the history
  • Loading branch information
seung365 committed Aug 7, 2024
1 parent a817993 commit 1c6a32c
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 0 deletions.
1 change: 1 addition & 0 deletions src/api/hooks/useGetLogin.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@ export const getLoginPath = (code: string) => `${BASE_URL}/google/login/redirect
export const getLogin = async ({ code }: AuthResponse): Promise<LoginResponse> => {
try {
const response = await axios.get<LoginResponse>(getLoginPath(code));
console.log(response.data);
return response.data;
} catch (error) {
console.error('Error during login:', error);
Expand Down
1 change: 1 addition & 0 deletions src/pages/Login/AuthPage.tsx
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,7 @@ export const AuthPage = () => {

useEffect(() => {
if (data && !error) {
console.log('data' + data);
sessionStorage.setItem('authToken', data.accessToken);
navigate(RouterPath.home);
}
Expand Down

0 comments on commit 1c6a32c

Please sign in to comment.