From ca6b952c19702be3626f9774b9f2f0cd570d2ab6 Mon Sep 17 00:00:00 2001 From: Matthew Chen Date: Tue, 10 Apr 2018 10:35:53 -0400 Subject: [PATCH] Never recycle biometric auth. --- Signal/src/util/OWSScreenLock.swift | 6 ++---- 1 file changed, 2 insertions(+), 4 deletions(-) diff --git a/Signal/src/util/OWSScreenLock.swift b/Signal/src/util/OWSScreenLock.swift index 496f00958..04d9806c8 100644 --- a/Signal/src/util/OWSScreenLock.swift +++ b/Signal/src/util/OWSScreenLock.swift @@ -343,10 +343,8 @@ import LocalAuthentication private func screenLockContext() -> LAContext { let context = LAContext() - // If user has set any non-zero timeout, recycle biometric auth - // in the same period as our normal screen lock timeout, up to - // max of 10 seconds. - context.touchIDAuthenticationAllowableReuseDuration = TimeInterval(min(10.0, screenLockTimeout())) + // Never re-use recent biometric auth. + context.touchIDAuthenticationAllowableReuseDuration = TimeInterval(0) if #available(iOS 11.0, *) { assert(!context.interactionNotAllowed)