-
Notifications
You must be signed in to change notification settings - Fork 3
Network [#25] Login & Onboarding 네트워크 연결 #31
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
Conversation
Zoe0929
left a comment
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.
👍 고생하셨습니다! 소셜 로그인이 두개라 구현 어려우셨을텐데 좋아요오
| @StateObject var loginViewModel = LoginViewModel() | ||
| @StateObject var userManager = UserManager.shared |
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.
👍 StateObject로 변경한 거 좋아요!
| // | ||
|
|
||
| import Foundation | ||
| import SwiftUI |
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.
❓ SwiftUI 사용한 부분이 크게 없어보여서 Foundation만 import 해도 좋을 것 같은데, SwiftUI를 import한 이유가 있을까요?
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.
크게 필요 없을 것 같네요...
| @AppStorage("accessToken") var accessToken = "" | ||
| @AppStorage("refreshToken") var refreshToken = "" | ||
| @AppStorage("socialToken") var socialToken = "" |
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.
토큰 키체인 도입 꼭 필요할 것 같아요! 알아 보겠습나다!!
| // self.setRootViewController(SignInCompleteViewController()) | ||
| // guard let data = data.data else { return } | ||
| // UserManager.shared.updateToken(data.token.accessToken, data.token.refreshToken) | ||
| // UserManager.shared.updateUserId(data.userId) |
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.
오... 삭제하겠습니다!
👾 작업 내용
UserManager.shared.accessToken = data.token.accessToken(이어서 추가 작성 하겠음)
🚀 PR Point
✅ CheckList
🔗 Issue
Resolved #25