mirror of
https://github.com/cirruslabs/tart.git
synced 2026-10-08 07:01:14 +02:00
* tart login: verify credentials * Make DictionaryCredentialsProvider fileprivate to Login.swift
11 lines
255 B
Swift
11 lines
255 B
Swift
import Foundation
|
|
|
|
enum CredentialsProviderError: Error {
|
|
case Failed(message: String)
|
|
}
|
|
|
|
protocol CredentialsProvider {
|
|
func retrieve(host: String) throws -> (String, String)?
|
|
func store(host: String, user: String, password: String) throws
|
|
}
|