1
0
mirror of https://github.com/maxgoedjen/secretive.git synced 2025-04-13 19:12:11 +00:00

Nil out on expiration check

This commit is contained in:
Max Goedjen 2021-11-07 13:37:12 -08:00
parent 600ab463b4
commit 23fede3def
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8

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 = [