-
Notifications
You must be signed in to change notification settings - Fork 0
CLAP-205 로그인 관련 API 연결 #65
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
Conversation
Minkyu0424
left a comment
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.
고생하셨습니다 로그인 스웨거로 하느라 불편했는데 대환영입니다
seorang42
left a comment
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/api/auth.ts
Outdated
| } | ||
| }) | ||
|
|
||
| Cookies.set('accessToken', response.data.accessToken, { |
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.
혹시 순수 js를 사용하여 쿠키를 저장하고 사용하지 않고
js-cookie 라이브러리를 사용하시게 된 이유가 있을까요?
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.
우선 vue-cookies나 순수 js를 사용한 쿠키보다 보안 안정성 측면과 TypeScript 지원을 보았을때에도 js-cookie 라이브러리가 우수하다고 알고 있습니다. 또한 추후 토큰 변경 감지를 위한 watchEffect 를 사용할 것을 염두하여 선택하였습니다!
더 나아가면 개발자가 편하려고 사용하는 것은 이유가 되지 않지만, 사용하기 매우 편하다는 장점도 있습니다😳
#️⃣연관된 티켓 넘버
📝작업 내용
🏞️스크린샷 (선택)
💬리뷰 요구사항(선택)