Files
tmail-flutter/ios/TwakeCore/Network/Model/AuthenticationCredential.swift
2024-01-08 14:25:26 +01:00

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)"
}
}