From the course: Biometric Authentication for iOS in Swift
Unlock the full course today
Join today to access over 22,600 courses taught by industry experts or purchase this course individually.
Reuse duration
From the course: Biometric Authentication for iOS in Swift
Reuse duration
- [Instructor] Now, we want to talk about one more setting you can specify on the context that can be good for your user experience. So, on line 22 I'm going to type context.touchIDAuthenticationAllowableReuseDuration. This is the time in seconds that if the user unlocks their phone with Touch ID, they don't have to reauthenticate themselves for your app. That means if the user unlocked their phone with their finger, and then they opened your app 10 seconds later, say, they don't have to authenticate again. You can specify the amount of time where that authentication is reused. So, maybe you want to allow 15 seconds, you can specify 15, maybe 60 seconds, give 'em a whole minute. There's also a maximum allowed called LATouchIDAuthenticationMaximumAllowableReuseDuration, just rolls off the tongue, doesn't it? And if we do a Control + Command + Click on that we can see that it's a time interval. At the time of this recording, that value is 300. So, it's five minutes. That's the maximum…
Practice while you learn with exercise files
Download the files the instructor uses to teach the course. Follow along and learn by watching, listening and practicing.