Credential
public struct Credential : HADataDecodable
A credential authentication provider
-
The type of the credential, for example homeassistant
Declaration
Swift
public var type: String -
The id of the credential, specific to that credential
Declaration
Swift
public var id: String? -
Create with data
Throws
If any required keys are missingDeclaration
Swift
public init(data: HAData) throwsParameters
dataThe data from the server
-
Create with a given type and id
Declaration
Swift
public init(type: String, id: String?)Parameters
typeThe type of the credential
idThe id of the credential
View on GitHub