Skip to content
Proyek

jstart/EHFAuthenticator-Touch-ID

Lihat di GitHub

Tentang

Simple class for handling Local Authentication using Touch ID. Used in eHarmony iOS App.

Keamanan dan privasi

Cara angka ini diukur

Pertumbuhan bintang terukur

dalam 24 jam
0
dalam 7 hari
0
dalam 15 hari
0
dalam 1 bulan
Mengumpulkan riwayat

Perubahan bersih pada periode yang tumpang tindih, bukan total harian. Pengukuran yang belum tersedia dibiarkan kosong. Bintang menunjukkan perhatian, bukan kualitas.

README.md

Asli

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.
})

Jelajahi proyek terkait

Memuat…