Improve validity window

This commit is contained in:
Max Goedjen authored and GitHub committed 2021-12-12 02:09:33 +00:00
1 parent 79f7177ffb
commit 86719e893b
1 file changed
+1
@@ -142,6 +142,7 @@ extension SecureEnclave {
public func persistAuthentication(secret: Secret, forDuration duration: TimeInterval) throws {
let newContext = LAContext()
newContext.touchIDAuthenticationAllowableReuseDuration = duration
newContext.localizedCancelTitle = "Deny"
let formatter = DateComponentsFormatter()