-
Notifications
You must be signed in to change notification settings - Fork 0
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: 회원가입 시 기존 회원가입 여부 확인 네트워크 연결 #218
Conversation
if await worker?.isRegisteredKakao(with: token) == true, | ||
await worker?.loginKakao(with: token) == true { |
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 없애도 되지않을까 싶습니다?
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.
여길 고치려고 하니까 Mock 객체에서 MockURLProtocol.requestHandler
가 static var
이어서 아래쪽이랑 통일하게 되면 data race 때문에 응답이 교차되는 현상이 발생해서 아래를 이것과 똑같이 맞추었습니다...ㅠㅠ
MockURLProtocol.requestHandler를 각 메서드마다 독립적으로 실행하게 되면 나을 것 같은데 우선은 아래를 이것과 통일하도록 할게요
새 이슈에서 진행하겠습니다.
let endPoint = EndPoint<Response<CheckSignUpDTO>>(path: "/oauth/check-signup/apple", | ||
method: .POST, | ||
bodyParameters: bodyParameters) |
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.
Mock 객체인 만큼 최대한 다른 객체의 의존성을 덜어주는게 좋다고 생각하기 때문입니다!
그렇지 않으면 EndPointFactory도 검증의 부담이 생기지요
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.
LGTM👍
🧑🚀 PR 요약
회원 가입 시 기존 가입 여부를 확인하는 API 엔드포인트를 연결했습니다.
📌 변경 사항
지금은 True를 MockData로 놓아서 기존 회원가입 화면을 스킵하고 지나갑니다!
Linked Issue
close #217