Skip to content

Conversation

@BaekJiyeon02
Copy link
Member

#️⃣연관된 티켓 넘버

CLAP-204
CLAP-205

📝작업 내용

로그인, 비밀번호 재설정 API를 연결하였습니다.
액세스 토큰을 쿠키에 저장하도록 하였습니다.
상태관리에 저장한 회원정보가 새로고침 시 삭제 되지 않도록 TopMenu에서 액세스 토큰으로 회원정보 상세 조회 API를 호출하도록 하였습니다.
현재 이메일 확인/요청 API가 미완성 이므로 추후 연결 한 후 비밀번호 재설정이 가능하도록 하겠습니다.

🏞️스크린샷 (선택)

스크린샷 2025-02-02 오후 9 19 45

💬리뷰 요구사항(선택)

내일 대면으로 Siena랑 첫 로그인시 비밀번호 재설정에 대해서 더 논의해봐야될 것 같아요. 이점 감안해주시고 봐주시면 감사하겠습니다!
혹시 로직상 보안에 취약하다고 판단되는 부분이 있으면 말씀해주세요!

BaekJiyeon02 and others added 23 commits February 2, 2025 14:45
@BaekJiyeon02 BaekJiyeon02 added ✨ Feature 기능 개발 📬 API 서버 API 통신 labels Feb 2, 2025
@BaekJiyeon02 BaekJiyeon02 self-assigned this Feb 2, 2025
Copy link
Contributor

@Minkyu0424 Minkyu0424 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

고생하셨습니다 로그인 스웨거로 하느라 불편했는데 대환영입니다

Copy link
Contributor

@seorang42 seorang42 left a 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, {
Copy link
Contributor

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

혹시 순수 js를 사용하여 쿠키를 저장하고 사용하지 않고
js-cookie 라이브러리를 사용하시게 된 이유가 있을까요?

Copy link
Member Author

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 를 사용할 것을 염두하여 선택하였습니다!
더 나아가면 개발자가 편하려고 사용하는 것은 이유가 되지 않지만, 사용하기 매우 편하다는 장점도 있습니다😳

@BaekJiyeon02 BaekJiyeon02 linked an issue Feb 2, 2025 that may be closed by this pull request
@BaekJiyeon02 BaekJiyeon02 merged commit 36cd54f into develop Feb 2, 2025
@BaekJiyeon02 BaekJiyeon02 deleted the CLAP-205 branch February 2, 2025 15:15
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📬 API 서버 API 통신 ✨ Feature 기능 개발

Projects

None yet

Development

Successfully merging this pull request may close these issues.

CLAP-205 로그인 관련 API 연결

4 participants