Skip to content

Commit

Permalink
fix: 응답 body가 비어있어 무조건 에러가 발생하는 문제를 수정
Browse files Browse the repository at this point in the history
  • Loading branch information
jaeml06 committed Oct 22, 2024
1 parent 9d067b5 commit 8788065
Show file tree
Hide file tree
Showing 2 changed files with 2 additions and 3 deletions.
3 changes: 1 addition & 2 deletions frontend/src/apis/auth.ts
Original file line number Diff line number Diff line change
@@ -1,10 +1,9 @@
import ApiClient from './apiClient';

export const kakaoOAuth = async (code: string) => {
const response = await ApiClient.postWithAuth('/auth/kakao', {
await ApiClient.postWithAuth('/auth/kakao', {
code,
});
return response.json();
};
export const googleOAuth = async (
idToken: string,
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -22,7 +22,7 @@ export default function OAuthMigrationResultPage() {
}
}, [result, navigate]);

if (result === 'sucess') {
if (result === 'success') {
return (
<LoginLayout>
<LoginLayout.Header></LoginLayout.Header>
Expand Down

0 comments on commit 8788065

Please sign in to comment.