mirror of
https://github.com/maxgoedjen/secretive.git
synced 2026-11-19 03:55:59 +01: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:
1 parent
54e0d00d87
commit
9edc879900
3 files changed
+8
-8
No files matched your search
@@ -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