Skip to content

Commit 596e1c5

Browse files
authored
[FRONTEND] 가이드 페이지 접근 허용 (#69)
일시적으로 가이드 페이지 인증 없이도 접근 허용
1 parent 3e2daae commit 596e1c5

File tree

2 files changed

+7
-10
lines changed

2 files changed

+7
-10
lines changed

frontend/src/App.tsx

Lines changed: 2 additions & 8 deletions
Original file line numberDiff line numberDiff line change
@@ -42,14 +42,8 @@ const Router = () => {
4242
</ProtectedRoute>
4343
}
4444
/>
45-
<Route
46-
path={"/guide"}
47-
element={
48-
<ProtectedRoute>
49-
<Guide />
50-
</ProtectedRoute>
51-
}
52-
/>
45+
{/* 가이드는 일시적으로 비인증 사용자도 접근 허용 */}
46+
<Route path={"/guide"} element={<Guide />} />
5347
<Route
5448
path={"/community"}
5549
element={

frontend/src/api/userSetting/useKakaoLogin.ts

Lines changed: 5 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -11,15 +11,18 @@ export const useKakaoLogin = () => {
1111
mutationFn: async (code: string) => {
1212
console.log('🔑 카카오 로그인 API 호출');
1313

14+
const redirect_uri = `${window.location.origin}/oauth/kakao/redirect`;
15+
console.log('🔁 전달할 redirect_uri:', redirect_uri);
16+
1417
const response = await axios.post(
1518
`${import.meta.env.VITE_API_URL}/oauth/login/kakao`,
16-
{ code },
19+
{ code, redirect_uri },
1720
{
1821
headers: { 'Content-Type': 'application/json' },
1922
timeout: 10000,
2023
}
2124
);
22-
25+
2326
return response.data;
2427
},
2528
onSuccess: (data) => {

0 commit comments

Comments
 (0)