Skip to content
No description, website, or topics provided.
Objective-C Shell Ruby
Branch: master
Clone or download
Fetching latest commit…
Cannot retrieve the latest commit at this time.
Permalink
Type Name Latest commit message Commit time
Failed to load latest commit information.
DATTouchID
Example
.gitignore
.travis.yml
DATTouchID.podspec
LICENSE
README.md
_Pods.xcodeproj

README.md

DATTouchID

[![CI Status](http://img.shields.io/travis/Peter Gulyas/DATTouchID.svg?style=flat)](https://travis-ci.org/Peter Gulyas/DATTouchID) Version License Platform

Use DATTouchID to access or store data using biometrics or passcode to authenticate

Example Project

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

Example Implementation

- (void) viewDidLoad{
  ...
  self.touchId = [DATTouchID new];
  if (self.touchId.hasData){
    ... update interface
  }
}

- (void) loadData{
  [self.touchId getDataWithPrompt:@"Load stored credentials" complete:^(NSData *data, NSError *error) {
    ...
  }];
}

- (void) saveData{
  NSData* data = ...;
  [self.touchId setData:data complete:^(BOOL success, NSError * error) {
    ...
  }];
}

Installation

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

pod "DATTouchID"

License

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

You can’t perform that action at this time.