Conversation
- Endpoint, URLRequest 수정 - 기존 parameter만 받던 Endpoint에서 queryParameters, bodyParameters를 구분지어서 받도록 수정 - 확장해서 만든 커스텀 URLRequest 생성자에서 url 뿐만 아니라 queryParamters도 받아 쿼리 파라미터가 있다면 붙여서 url 만들어주도록 수정 - 그에 따른 TestEndpoint 수정
- Enum, Error 폴더 구조 정리 - AuthEndpoint 구현 - AuthRepository 구현체 및 추상체 구현 - LoginUseCase 구현체 및 추상체 구현
|
Important Review skippedAuto reviews are disabled on base/target branches other than the default branch. Please check the settings in the CodeRabbit UI or the You can disable this status message by setting the Thanks for using CodeRabbit! It's free for OSS, and your support helps us grow. If you like it, consider giving us a shout-out. 🪧 TipsChatThere are 3 ways to chat with CodeRabbit:
SupportNeed help? Create a ticket on our support page for assistance with any issues or questions. Note: Be mindful of the bot's finite context window. It's strongly recommended to break down tasks such as reading entire modules into smaller chunks. For a focused discussion, use review comments to chat about specific files and their changes, instead of using the PR comments. CodeRabbit Commands (Invoked using PR comments)
Other keywords and placeholders
CodeRabbit Configuration File (
|
| var headers: [String : String] { | ||
| switch self { | ||
| case .login(_, _, let token): | ||
| return ["Authorization": token] |
There was a problem hiding this comment.
API 명세에서 SocialAccessToken 헤더를 명시적으로 요구 하고 있어요
Authorization은 다른 인증에 사용되는 표준 헤더로 혼동될 수 있습니다
There was a problem hiding this comment.
PR description에도 기재했듯이 서버 수정 가능성이 있었습니다.
현재 PR은 서버 수정사항이 반영되기 전에 작성되어 있어서 서버통신, ViewModel, UseCase, Repository 위주로 확인 부탁드립니다.
서버 변경 사항은 Endpoint만 수정하면 됩니다. 스웨거 확인 후 수정하며 커밋하겠습니다.
There was a problem hiding this comment.
확인했습니다!
기타 구조적 부분은 훌륭하게 구현하셨습니다!
| } | ||
| } | ||
|
|
||
| var queryParameters: [String : String] { |
There was a problem hiding this comment.
스웨거의 Request body 섹션에 명시된 대로 JSON 형식으로 전송해야 하지 않나요?
- AuthEndpoint 수정 - accessToken, refreshToken 저장 후 로그 찍기
|
서버 요청 사항 반영 후 수정했습니다. 확인 부탁드립니다. |
|
체크 했습니다!! 수고하셨습니다~ |
🌁 Background
소셜 로그인 중 카카오 로그인 기능을 구현하였습니다.
KakaoSDK 외부 의존성을 추가하여 카카오에서 토큰 값을 받아와 빛나길 서버로 보내주었습니다.
Apple 로그인과 같은 AuthEndpoint를 사용할 수 있도록 확장 가능한 구조로 구현했습니다.
로그아웃, 탈퇴 또한 같은 Endpoint, AuthRepository를 사용할 수 있도록 구현했습니다.
📱 Screenshot
Simulator.Screen.Recording.-.iPhone.15.-.2025-06-30.at.17.18.58.mp4
👩💻 Contents
✅ Testing
SceneDelegate에서 첫 화면을 LoginViewController로 수정하여, 카카오 로그인을 테스트 해봤습니다.
또한 KeychainStorage에 토큰값이 저장된 것도 확인 완료했습니다.
📝 Review Note
로그인 화면 및 분기 처리
서버 요청 값 수정 (Endpoint, URLRequest)
Concurrency 사용