Skip to content

Commit

Permalink
[Fix/#91] 불필요한 Domain 키워드 삭제
Browse files Browse the repository at this point in the history
  • Loading branch information
kim-seonwoo committed Nov 14, 2024
1 parent 2d261fa commit 01314a1
Showing 1 changed file with 3 additions and 3 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@ public final class LoginUseCase: LoginUseCaseType {
self.repository = repository
}

public func login(provider: Domain.OAuthProviderType) -> AnyPublisher<LoginResponseType, Domain.AuthError> {
public func login(provider: OAuthProviderType) -> AnyPublisher<LoginResponseType, Domain.AuthError> {
repository.authorize(provider)
.handleEvents(receiveOutput: { socialToken in
UserManager.shared.socialToken = socialToken
Expand All @@ -46,11 +46,11 @@ public final class LoginUseCase: LoginUseCaseType {
switch error {
case .unregisteredUser:
return Just(.onboardingNeeded)
.setFailureType(to: Domain.AuthError.self)
.setFailureType(to: AuthError.self)
.eraseToAnyPublisher()
default:
return Just(.loginFailure)
.setFailureType(to: Domain.AuthError.self)
.setFailureType(to: AuthError.self)
.eraseToAnyPublisher()
}
}
Expand Down

0 comments on commit 01314a1

Please sign in to comment.