MFAModule

public struct MFAModule : HADataDecodable

An MFA module

  • id

    The id of the module, for example totp

    Declaration

    Swift

    public var id: String
  • The name of the module, for example Authenticator app

    Declaration

    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 missing

    Declaration

    Swift

    public init(data: HAData) throws

    Parameters

    data

    The data from the server

  • Create with given information

    Declaration

    Swift

    public init(id: String, name: String, isEnabled: Bool)

    Parameters

    id

    The id of the module

    name

    The name of the module

    isEnabled

    Whether the module is enabled for the user