[feat/#337] 사용자 로그인 정보 API 연동 & 프로필 사진 삭제 구현#341
Merged
SeungWon1125 merged 12 commits intodevelopfrom Nov 19, 2025
Merged
Conversation
1 task
dudwntjs
approved these changes
Nov 18, 2025
|
|
||
| func shouldSkipAuth(for path: String) -> Bool { | ||
| skipAuthKeywords.contains { path.contains($0) } | ||
| skipAuthKeywords.contains { path.hasPrefix($0) } |
|
|
||
| MyPageSettings( | ||
| loginProvider: "카카오 로그인", | ||
| loginProvider: store.state.loginInformation, |
| row(title: "고객센터", action: onTapCustomerCenter) | ||
|
|
||
| row(title: "로그인 정보", trailing: loginProvider) | ||
| row(title: "로그인 정보", trailing: loginProvider?.loginInformation ?? "") |
Contributor
There was a problem hiding this comment.
?? 근데 이거 머라고 읽어요
닐 코얼레ㅔ싱?
Collaborator
Author
This file contains hidden or bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment
Add this suggestion to a batch that can be applied as a single commit.This suggestion is invalid because no changes were made to the code.Suggestions cannot be applied while the pull request is closed.Suggestions cannot be applied while viewing a subset of changes.Only one suggestion per line can be applied in a batch.Add this suggestion to a batch that can be applied as a single commit.Applying suggestions on deleted lines is not supported.You must change the existing code in this line in order to create a valid suggestion.Outdated suggestions cannot be applied.This suggestion has been applied or marked resolved.Suggestions cannot be applied from pending reviews.Suggestions cannot be applied on multi-line comments.Suggestions cannot be applied while the pull request is queued to merge.Suggestion cannot be applied right now. Please check back later.


📄 작업 내용
💻 주요 코드 설명
Interceptor 수정이 필요했어요
사용자 로그인 정보 API가 추가되었는데요
path가
"/auth/login-info"로 추가되었습니다.여기서 문제가 되었는데요
"/auth/login"경로에 포함되어 헤더에accessToken이 안 붙어서 자꾸 로그인 정보가nil이더라고요(서버 문제인 줄 알고,, 또 민규형을 괴롭혓ㅆ다.._..ㅠ)
스웨거랑 명세서 확인하니까
"/auth/login"경로의 API가 로그인 정보 말고 없었습니다결론 ->
"/auth/login"삭제함추가적으로 좀 더 확실하게 하기 위해
.hasPrefix()로 바꿔놨습니다-> skip할 path 문자열로 시작하면
true=> 헤더에 토큰 안 붙임프로필 사진 삭제 구현
이슈 파기 귀찮아서 여기서 구현했어요
서버에서 회원 정보 수정 API를
request를 아래와 같이 요구했습니다.profileImageFileKey에 값이 있으면 -> 새로운 이미지로 수정profileImageFileKey에 값이nil이면 -> 기존 이미지를 사용(원래 설정해놨던 사진)profileImageFileKey에 값이""이면 -> 기본 이미지를 사용(프로필 사진 삭제)1️⃣ 먼저 MyPageEdit 상태 관리
그래서 먼저 delete하는 action을 추가한 후, state의
state.attachedImageData에 빈 값을 넣는 방식으로 구현했어요그리고 Store에서 사진을 S3에 업로드하기 전 빈 문자열이면 S3에 올리지 않고 ""을
requestDTO에 담아 요청하도록 했습니다.2️⃣ ProfilePhotoPicker 수정
컴포넌트 내부에
didDelete상태를 추가하였습니다.왜냐면, 생각을 해보았는데, 기존에 프로필 사진이 있었던, 아니면 새로 골랐던 삭제를 누른 순간에는 무조건 기본 이미지가 떠야 하니까요
그래서 기존에 있던 if문에
didDelete를 제일 먼저 확인하여사용자가 프로필 사진을 삭제했을 때 컴포넌트에서 기본 이미지가 뜨도록 구현했어요
추가적으로 프로필 사진을 눌렀을 때 수정할 건지, 삭제할 건지도 사용자에게 물어봐야하기 때문에
alert표시이렇게 구현했습니다.
(아 아직 저 alert는 디잔쌤들한테 안 물어보긴 했어요.. qa때 물어보겠습니다)
🔗 연결된 이슈
👀 기타 더 이야기해볼 점