Using Touch ID for user authentication
The fingerprint, also known as Touch ID from a developer's perspective, is one of the greatest features in new Apple devices, starting from iPhone 5s, and now in modern android devices as well. Most people think that Touch ID is used for authenticating the user to unlock their devices only but, actually in iOS, you can use it to unlock the device, make payments, authenticate a user for apps that support Touch ID, and download apps from the App Store. In this recipe, we will see how to integrate Touch ID in an iOS app to authenticate the user instead of having them retype their credentials.
Getting ready
Apple provides developers with a framework, called Location Authentication. It handles all heavy tasks for you and takes care of the access sensor and authenticating the user, and gets back to you with a result and error, if any. It's very important to know that the framework doesn't share or expose any information or data, that represents or has a relation...