Simple class for handling Local Authentication using Touch ID. Used in eHarmony iOS App. EHF stands for eHarmony Foundation which is our library of utilities built off Apple Frameworks. iOS 8 only because it requires the LocalAuthentication framework. Only functional on devices equipped with a Touch ID sensor (iPhone 5S, 6, 6+). Will not work in simulator.
Article describing the feature [on medium] (https://medium.com/ios-os-x-development/getting-started-with-touch-id-local-authentication-5264b4c256b9).
Our mockup of the feature in eHarmony is below:
##Example Usage
Install with Cocoapods:
pod 'EHFAuthenticator-Touch-ID'
Set a reason to show to your users, then authenticate to verify identity.
[[EHFAuthenticator sharedInstance] setReason:@"Authenticate with Touch ID to access secure data"]
[[EHFAuthenticator sharedInstance] authenticateWithSuccess:^(){
[self presentAlertControllerWithMessage:@"Successfully Authenticated!"];
} andFailure:^(LAError errorCode){
//Handle LAError codes. See example project for the different errors that can occur.
}];