13 lines
419 B
Swift
13 lines
419 B
Swift
import PromiseKit
|
|
import Shared
|
|
|
|
protocol OnboardingAuthTokenExchange {
|
|
func tokenInfo(code: String, connectionInfo: inout ConnectionInfo) -> Promise<TokenInfo>
|
|
}
|
|
|
|
class OnboardingAuthTokenExchangeImpl: OnboardingAuthTokenExchange {
|
|
func tokenInfo(code: String, connectionInfo: inout ConnectionInfo) -> Promise<TokenInfo> {
|
|
TokenManager.initialToken(code: code, connectionInfo: &connectionInfo)
|
|
}
|
|
}
|