Skip to content

Commit

Permalink
Merge branch 'feature/project-lyrics#22-login-tests' into refactor/pr…
Browse files Browse the repository at this point in the history
…oject-lyrics#24-login-logic
  • Loading branch information
derrickkim0109 committed Jun 24, 2024
2 parents a177030 + 42fc30c commit 09966d0
Show file tree
Hide file tree
Showing 4 changed files with 10 additions and 45 deletions.
Original file line number Diff line number Diff line change
Expand Up @@ -8,6 +8,6 @@
import Foundation

public enum OAuthProvider: String {
case kakao
case apple
case kakao = "KAKAO"
case apple = "APPLE"
}
15 changes: 8 additions & 7 deletions Projects/Domain/OAuth/Interface/Sources/Model/OAuthResult.swift
Original file line number Diff line number Diff line change
Expand Up @@ -8,15 +8,16 @@
import Foundation

public enum OAuthType: String {
case kakao
case apple
case kakao = "KAKAO"
case apple = "APPLE"
case none
}

public struct OAuthResult: Equatable {
public let oAuthType: OAuthType

public init(oAuthType: OAuthType) {
self.oAuthType = oAuthType
public enum OAuthResult: Equatable {
public static func == (lhs: OAuthResult, rhs: OAuthResult) -> Bool {
return lhs.self == rhs.self
}

case success(OAuthType)
case failure(Error)
}
13 changes: 0 additions & 13 deletions Projects/Domain/Sources/DomainError.swift

This file was deleted.

This file was deleted.

0 comments on commit 09966d0

Please sign in to comment.