ssowri1 / SPTouchID

Make a portable biometric authentication of your application!

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

SPTouchID

CI Status Version License Platform

Screenshot

Example

To run the example project, clone the repo, and run pod install from the Example directory first.

        //**** REQUIRED ****//
        /// biometric class instance
        var biometricAuth = SPAuthentication()
        biometricAuth.delegate = self
        biometricAuth.start()
        
        // MARK:- Authentication delegates
        
    extension SPTouchIDViewController: LocalAuthDelegate {
    func authenticationFinished(string: String) {
        DispatchQueue.main.async {
          self.promtLabel.text = ""
          self.validationPassed()
        }
    }
    func authenticationFinishedWithError(error: String) {
        DispatchQueue.main.async {
          self.promtLabel.text = error
        }
      }
    }

Requirements

Installation

SPTouchID is available through CocoaPods. To install it, simply add the following line to your Podfile:

pod 'SPTouchID','~> 0.1.7'

Author

ssowri1, ssowri1@gmail.com

License

SPTouchID is available under the MIT license. See the LICENSE file for more info.

About

Make a portable biometric authentication of your application!

License:MIT License


Languages

Language:Swift 85.4%Language:Ruby 14.6%