Skip to content

Conversation

@kim-seonwoo
Copy link
Member

👾 작업 내용

  • 네트워크를 연결하였습니다!
  • 네트워크 연결로 인한 Main App 파일 플로우의 대폭 변경이 있습니다!
  • 연결한 API는 다음과 같아요!
  • : 소셜 로그인, 회원 가입, 회원 탈퇴, 로그아웃, 토큰 재발급
  • 추가적으로 UserManager라는 UserDefault 값을 담는 싱글톤 객체를 만들었습니다!
  • 다음 예시와 같이 바꾸거나, 접근 하시면 됩니다!
    UserManager.shared.accessToken = data.token.accessToken
  • Base URL 관련 설정 info에서 (안 올림) 그리고 API 접근 허용 = true로 바꿔놨어요!

(이어서 추가 작성 하겠음)

🚀 PR Point

  • Onboarding 정보 중에 권한과 앱 선택은 아직 연결 안했습니다! (하드 코딩)

✅ CheckList

  • 오류 없이 빌드되는지 확인
  • 로그용 print문 제거
  • 불필요한 주석 제거
  • 코드 컨벤션 확인

🔗 Issue

Resolved #25

@kim-seonwoo kim-seonwoo added 😎선우 선우의 issue 📡NETWORK API 작업 labels May 21, 2024
@kim-seonwoo kim-seonwoo added this to the 🔭2차 스프린트🪐 milestone May 21, 2024
@kim-seonwoo kim-seonwoo requested a review from Zoe0929 May 21, 2024 14:48
@kim-seonwoo kim-seonwoo self-assigned this May 21, 2024
Copy link
Member

@Zoe0929 Zoe0929 left a comment

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

👍 고생하셨습니다! 소셜 로그인이 두개라 구현 어려우셨을텐데 좋아요오

Comment on lines +13 to +14
@StateObject var loginViewModel = LoginViewModel()
@StateObject var userManager = UserManager.shared
Copy link
Member

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
Copy link
Member

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한 이유가 있을까요?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

크게 필요 없을 것 같네요...

Comment on lines +11 to +13
@AppStorage("accessToken") var accessToken = ""
@AppStorage("refreshToken") var refreshToken = ""
@AppStorage("socialToken") var socialToken = ""
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ 토큰은 키체인에서 관리하는 건 어떠신가요?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

토큰 키체인 도입 꼭 필요할 것 같아요! 알아 보겠습나다!!

Comment on lines 122 to 125
// self.setRootViewController(SignInCompleteViewController())
// guard let data = data.data else { return }
// UserManager.shared.updateToken(data.token.accessToken, data.token.refreshToken)
// UserManager.shared.updateUserId(data.userId)
Copy link
Member

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

❓ 여기 주석을 그대로 남겨둔 이유가 있을까요 ?

Copy link
Member Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

오... 삭제하겠습니다!

@kim-seonwoo kim-seonwoo merged commit d33bffc into develop May 24, 2024
@Zoe0929 Zoe0929 deleted the feat/#25-MainApp branch June 19, 2024 02:22
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

📡NETWORK API 작업 😎선우 선우의 issue

Projects

Status: Done

Development

Successfully merging this pull request may close these issues.

[Feat] 화면 전환 로직 연결

3 participants