File tree Expand file tree Collapse file tree 2 files changed +7
-10
lines changed
Expand file tree Collapse file tree 2 files changed +7
-10
lines changed Original file line number Diff line number Diff 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 = {
Original file line number Diff line number Diff 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 ) => {
You can’t perform that action at this time.
0 commit comments