-
Notifications
You must be signed in to change notification settings - Fork 0
New issue
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
회원가입 및 로그인 기능 수정 #99
회원가입 및 로그인 기능 수정 #99
Conversation
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
전체적으로 깔끔하게 잘 구현하신 것 같습니다.
고생하셨습니다!
if (!data.isMember) return navigate(data.redirectUrl); | ||
|
||
if (accessToken) { | ||
const path = data.isSinitto ? RouterPath.SNITTO : RouterPath.GUARD; | ||
window.location.href = path; | ||
} |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
페이지 이동을 navigate와 window.location.href로 다르게 사용한 이유가 있을까요?
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
router 설정을 잘못한건지, 이유는 모르겠지만 navigate 를 사용하니까 /redirect/~~ 로 이동하더라구요. 근데 다시 하니까 정상적으로 되는것 같습니다..
navigate로 통일하겠습니다!
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
context API 로 관리하는 게 더 깔끔하네요! 고생하셨습니다!
@@ -21,5 +21,6 @@ export const getKakaoCallback = async ( | |||
code, | |||
}, | |||
}); | |||
console.log(response.data); |
There was a problem hiding this comment.
Choose a reason for hiding this comment
The reason will be displayed to describe this comment to others. Learn more.
여기는 일부러 카카오 로그인 이후에 들어온 데이터 확인하려고 넣으신건가욤?
#️⃣ 연관된 이슈
📝 작업 내용
스크린샷 (선택)
💬 리뷰 요구사항(선택)
⏰ 현재 버그
✏ Git Close