-
Notifications
You must be signed in to change notification settings - Fork 2
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
Network [#75] 회원 가입 & 토큰 리프레시 API 구현 #83
Conversation
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.
P4. 고생television
} | ||
} | ||
|
||
|
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.
P3. 코드 컨벤션 지켜주세요. 여기 빈줄 삭제해주세용.
self.navigationController?.pushViewController(nextViewController, animated: false) | ||
let request = SignUpRequestDTO(socialPlatform: "APPLE", name: UserManager.shared.getUserName, onboarding: onboarding, challenge: challenge) | ||
print(request.onboarding.averageUseTime) | ||
let provider = Providers.AuthProvider | ||
provider.request(target: .signUp(data: request), instance: BaseResponse<SignUpResponseDTO>.self, viewController: self) { data in | ||
if data.status == 403 { | ||
let nextViewController = TimeSurveyViewController() | ||
self.navigationController?.pushViewController(nextViewController, animated: false) | ||
} else if data.status == 200 { | ||
self.setRootViewController(TabBarController()) | ||
guard let data = data.data else { return } | ||
UserManager.shared.updateToken(data.token.accessToken, data.token.refreshToken) | ||
UserManager.shared.updateUserId(data.userId) | ||
} | ||
guard let data = data.data else { return } | ||
} |
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.
P4. 추후 삭제 부탁드립니다.
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 Point
📸 스크린샷
✅ Issue
Resolved #75