MFAModule
public struct MFAModule : HADataDecodable
An MFA module
-
The id of the module, for example
totpDeclaration
Swift
public var id: String -
The name of the module, for example
Authenticator appDeclaration
Swift
public var name: String -
Whether the given module is enabled for the user
Declaration
Swift
public var isEnabled: Bool -
Create with data
Throws
If any required keys are missingDeclaration
Swift
public init(data: HAData) throwsParameters
dataThe data from the server
-
Create with given information
Declaration
Swift
public init(id: String, name: String, isEnabled: Bool)Parameters
idThe id of the module
nameThe name of the module
isEnabledWhether the module is enabled for the user
View on GitHub