BiometricAvailablePolicy

public struct BiometricAvailablePolicy : MfaPolicy, Sendable

Policy that checks if biometric authentication is available on the device.

This policy evaluates whether the device has biometric capabilities and if they are properly configured for authentication.

JSON format: {“biometricAvailable”: {}}

  • Declaration

    Swift

    public static let policyName: String
  • Declaration

    Swift

    public var name: String { get }
  • Declaration

    Swift

    public init()
  • evaluate(data:) Asynchronous

    Declaration

    Swift

    public func evaluate(data: [String : Any]?) async throws -> Bool