Fix bug where LAContext will be evaluated with incorrect policy for biometricCurrent secrets (#845)

* Fix bug where LAContext will be evaluated with deviceOwnerAuthentication instead of deviceOwnerAuthenticationWithBiometrics

* Fix test
This commit is contained in:
Max Goedjen
2026-10-01 00:02:40 -05:00
committed by GitHub
parent 54e0d00d87
commit 9edc879900
3 changed files with 8 additions and 8 deletions
@@ -41,9 +41,8 @@ public struct TestSecret: Secret {
nonisolated func valid(for request: SecretKit.SignatureRequest) -> Bool {
true
}
func evaluate() async throws -> Bool {
func evaluate(requireBiometrics: Bool) async throws -> Bool {
if case let .duration(duration) = approval {
try await Task.sleep(for: duration)
} else {