-
Notifications
You must be signed in to change notification settings - Fork 16
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
[Feat] #468 - apple getIdentityToken 구현
- Loading branch information
Showing
11 changed files
with
90 additions
and
15 deletions.
There are no files selected for viewing
26 changes: 25 additions & 1 deletion
26
SOPT-iOS/Projects/Data/Sources/Repository/CoreAuthRepository.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,9 +1,33 @@ | ||
// | ||
// CoreAuthRepository.swift | ||
// CoreOAuthRepository.swift | ||
// Data | ||
// | ||
// Created by 장석우 on 1/18/25. | ||
// Copyright © 2025 SOPT-iOS. All rights reserved. | ||
// | ||
|
||
import Combine | ||
import Foundation | ||
|
||
import Domain | ||
import Networks | ||
|
||
public class CoreOAuthRepository { | ||
|
||
private let appleService: AuthenticationService | ||
// private let googleService: | ||
|
||
public init(appleService: AuthenticationService) { | ||
self.appleService = appleService | ||
} | ||
} | ||
|
||
extension CoreOAuthRepository: CoreOAuthRepositoryInterface { | ||
public func getIdentityToken(from provider: OAuthType) -> AnyPublisher<String, Domain.CoreAuthError> { | ||
switch provider { | ||
case .apple: return appleService.getIdentityToken() | ||
case .google: fatalError() //TODO: | ||
} | ||
|
||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
2 changes: 1 addition & 1 deletion
2
SOPT-iOS/Projects/Domain/Sources/RepositoryInterface/CoreOAuthRepositoryInterface.swift
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -1,5 +1,5 @@ | ||
// | ||
// CoreAuthRepository.swift | ||
// CoreOAuthRepositoryInterface.swift | ||
// Domain | ||
// | ||
// Created by 장석우 on 1/18/25. | ||
|
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters