Lockout

public struct Lockout : Codable, Sendable

A struct representing the password policy lockout rules. Conforms to Codable for JSON encoding/decoding.

  • The number of failed login attempts that trigger a lockout.

    Declaration

    Swift

    public let failureCount: Int
  • The lockout duration in seconds once the failure threshold is reached.

    Declaration

    Swift

    public let durationSeconds: Int
  • Initializes a new Lockout instance.

    Declaration

    Swift

    public init(from decoder: Decoder) throws

    Parameters

    decoder

    The decoder to read data from.