Tweak copy.

This commit is contained in:
Max Goedjen 2021-11-07 13:15:20 -08:00
parent 2f0ccfbf82
commit 600ab463b4
No known key found for this signature in database
GPG Key ID: E58C21DD77B9B8E8
1 changed files with 1 additions and 1 deletions

View File

@ -141,7 +141,7 @@ extension SecureEnclave {
public func persistAuthentication(secret: Secret, forDuration duration: TimeInterval) throws {
let newContext = LAContext()
newContext.localizedCancelTitle = "Deny"
newContext.localizedReason = "sign requests using secret \"\(secret.name)\" without reprompting"
newContext.localizedReason = "unlock secret \"\(secret.name)\""
newContext.evaluatePolicy(LAPolicy.deviceOwnerAuthenticationWithBiometricsOrWatch, localizedReason: newContext.localizedReason) { [weak self] success, _ in
let context = PersistentAuthenticationContext(secret: secret, context: newContext, expiration: Date(timeIntervalSinceNow: duration))
self?.persistedAuthenticationContexts[secret] = context