Skip to content

datinc/DATTouchID

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

9 Commits
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

About

No description, website, or topics provided.

Resources

License

Stars

Watchers

Forks

Packages

No packages published