mirror of
				https://github.com/maxgoedjen/secretive.git
				synced 2025-10-30 23:10:57 +00:00 
			
		
		
		
	Better prompt.
This commit is contained in:
		
							parent
							
								
									311c5d6551
								
							
						
					
					
						commit
						2f0ccfbf82
					
				| @ -141,12 +141,11 @@ extension SecureEnclave { | ||||
|         public func persistAuthentication(secret: Secret, forDuration duration: TimeInterval) throws { | ||||
|             let newContext = LAContext() | ||||
|             newContext.localizedCancelTitle = "Deny" | ||||
|             newContext.localizedReason = "sign requests without reprompting" | ||||
|             newContext.localizedReason = "sign requests using secret \"\(secret.name)\" without reprompting" | ||||
|             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 | ||||
|             } | ||||
| 
 | ||||
|         } | ||||
| 
 | ||||
|     } | ||||
|  | ||||
		Loading…
	
		Reference in New Issue
	
	Block a user