mirror of
https://github.com/linagora/tmail-flutter.git
synced 2026-12-05 16:08:46 +00:00
17 lines
352 B
Swift
17 lines
352 B
Swift
import Foundation
|
|
|
|
struct AuthenticationCredential: Authentication {
|
|
var type: AuthenticationType
|
|
|
|
let basicAuth: String
|
|
|
|
init(type: AuthenticationType, basicAuth: String) {
|
|
self.type = type
|
|
self.basicAuth = basicAuth
|
|
}
|
|
|
|
func getAuthenticationHeader() -> String {
|
|
return "Basic \(basicAuth)"
|
|
}
|
|
}
|