Skip to content

Commit

Permalink
[Fix/#25] 코드리뷰 반영
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-seonwoo committed May 24, 2024
1 parent 7836a01 commit c43dc22
Show file tree
Hide file tree
Showing 2 changed files with 3 additions and 6 deletions.
2 changes: 1 addition & 1 deletion HMH_iOS/HMH_iOS/Network/Foundation/APIConstants.swift
Original file line number Diff line number Diff line change
Expand Up @@ -5,7 +5,7 @@
// Created by 지희의 MAC on 1/11/24.
//

import SwiftUI
import Foundation
import Moya

struct APIConstants{
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -119,13 +119,10 @@ class OnboardingViewModel: ObservableObject {
provider.request(target: .#(data: request), instance: BaseResponse<#ResponseDTO>.self) { data in
if data.status == 201 {
UserManager.shared.isOnboardingCompleted = true
// self.setRootViewController(SignInCompleteViewController())
// guard let data = data.data else { return }
// UserManager.shared.updateToken(data.token.accessToken, data.token.refreshToken)
// UserManager.shared.updateUserId(data.userId)
UserManager.shared.accessToken = data.data?.token.accessToken ?? ""
UserManager.shared.refreshToken = data.data?.token.refreshToken ?? ""
} else {
self.onboardingState = 0
// self.setRootViewController(LoginViewController())
}
}
}
Expand Down

0 comments on commit c43dc22

Please # to comment.