-
Notifications
You must be signed in to change notification settings - Fork 1
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
[Feat/#138] 카카오로그인 구현 완료 #145
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.
너무 복잡하고 어려운 과정이었을텐데 정말 멋지게 해내신 것 같아요!!! 고생하셨습니다 :) 서비스의 거대한 시작을 만들어주셔서 감사합니다!
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.
레전드임화랑
const Redirection = () => { | ||
const code: string = | ||
new URL(window.location.href).searchParams.get('code') || ''; | ||
window.history.forward(); |
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.
goHome을 작성해준다면 forward()는 불필요할 것 같습니다!
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.
로그인 성공시 사용자가 브라우저 뒤로가기를 했을 때 카카오로그인 관련 url로 되돌아 가는것을 방지하기 위함입니다!!
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.
엇 그런거군요!!! 새롭게 알아갑니다💡
src/utils/auth.ts
Outdated
}; | ||
|
||
export const isLoggedIn = () => { | ||
return getToken() ? true : false; |
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.
어차피 true 또는 false로 반환되는 거면 삼항연산자보다 Boolean 함수가 더 적절해보입니다..!
return Boolean(getToken());
은 어떠신가요 🤔
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.
좋네요! 반영하겠습니다!
📌 관련 이슈번호
체크리스트
✅ Key Changes
📢 To Reviewers
📸 스크린샷 or 실행영상