Skip to content

Commit

Permalink
Merge pull request #61 from Beside-Potenday/seungbeom
Browse files Browse the repository at this point in the history
feat: 디버그 코드 추가
  • Loading branch information
seung365 authored Aug 7, 2024
2 parents 4ee2bc6 + 1c6a32c commit 2880772
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 2880772

Please sign in to comment.