GitXplorerGitXplorer
j

EHFAuthenticator-Touch-ID

public
224 stars
21 forks
5 issues

Commits

List of commits on branch master.
Unverified
0ba70fe9af956f0e0ea39229adba0211110f1c7a

Podspec bump

jjstart committed 8 years ago
Unverified
b87db0430b83eda478ae7425eca7c7219c71e4e6

Podspec bump

jjstart committed 8 years ago
Unverified
fd4beb06f05f1a49c4829d705f574c192d04350e

Podspec bump

jjstart committed 8 years ago
Unverified
d2183ee8fe127f5c8f5dbb35dcf92e47763827f1

Merge pull request #5 from ReadmeCritic/master

jjstart committed 8 years ago
Unverified
b667c3f42ebe223c218b814d992840dd9a6fcf3a

Merge pull request #7 from dimohamdy/master

jjstart committed 8 years ago
Unverified
0b7a8f0804170d5480ad4b7b7c4b915cf875314f

Merge branch 'master' into master

jjstart committed 8 years ago

README

The README file for this repository.

EHFAuthenticator

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.

Swift 3.0 support as of 0.0.5

Swift 2.0 support as of 0.0.4

Swift 1.2 support - 0.0.3

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: mockup

##Example Usage

Install with CocoaPods:

pod 'EHFAuthenticator-Touch-ID', '0.0.5'

Set a reason to show to your users, then authenticate to verify identity.

ObjC

[[EHFAuthenticator sharedInstance] setReason:@"Authenticate with Touch ID to access secure data"]
[[EHFAuthenticator sharedInstance] authenticateWithSuccess:^(){
    // Success
} andFailure:^(LAError errorCode){
  //Handle LAError codes.  See example project for the different errors that can occur.
}];

Swift

EHFAuthenticator.sharedInstance.reason = "Authenticate with Touch ID to access secure data"
EHFAuthenticator.sharedInstance.authenticateWithSuccess({
    // Success
}, failure:{ errorCode in
  //Handle LAError codes.  See example project for the different errors that can occur.
})