mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-10-02 20:59:54 +02:00
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:
@@ -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 {
|
||||
|
||||
Reference in New Issue
Block a user