Skip to content

Commit bf821f6

Browse files
committed
feat: 콜백 전체 URL 추가
1 parent 45c2d12 commit bf821f6

File tree

2 files changed

+2
-2
lines changed

2 files changed

+2
-2
lines changed

frontend/src/pages/loginPage/api/loginWithGithub.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export async function loginWithGitHub(): Promise<void> {
99
});
1010

1111
if (response.type === 'opaqueredirect' || response.ok || (response.status >= 300 && response.status < 400)) {
12-
window.location.href = '/api/auth/github';
12+
window.location.href = `${import.meta.env.VITE_API_URL}/api/auth/github`;
1313
} else {
1414
throw new Error('서버 응답이 올바르지 않습니다.');
1515
}

frontend/src/pages/loginPage/api/loginWithKakao.ts

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -9,7 +9,7 @@ export async function loginWithKakao(): Promise<void> {
99
});
1010

1111
if (response.type === 'opaqueredirect' || response.ok || (response.status >= 300 && response.status < 400)) {
12-
window.location.href = '/api/auth/kakao';
12+
window.location.href = `${import.meta.env.VITE_API_URL}/api/auth/kakao`;
1313
} else {
1414
throw new Error('서버 응답이 올바르지 않습니다.');
1515
}

0 commit comments

Comments
 (0)