Nil out on expiration check

This commit is contained in:
Max Goedjen
2021-11-07 13:37:12 -08:00
parent 600ab463b4
commit 23fede3def

View File

@@ -103,6 +103,7 @@ extension SecureEnclave {
let newContext = LAContext() let newContext = LAContext()
newContext.localizedCancelTitle = "Deny" newContext.localizedCancelTitle = "Deny"
context = newContext context = newContext
persistedAuthenticationContexts[secret] = nil
} }
context.localizedReason = "sign a request from \"\(provenance.origin.displayName)\" using secret \"\(secret.name)\"" context.localizedReason = "sign a request from \"\(provenance.origin.displayName)\" using secret \"\(secret.name)\""
let attributes = [ let attributes = [