1.0.1 • Published 9 years ago
cordova-plugin-touchpin v1.0.1
Cordova TouchPin Plugin
A plugin that stores a secret in the iOS keychain protected by Touch ID.
Using
Clone the plugin
$ git clone https://github.com/pardeike/cordova-plugin-touchpin.gitCreate a new Cordova Project
$ cordova create touchpin net.pardeike.touchpinapp TouchPinInstall the plugin
$ cd touchpin
$ cordova plugin add ../cordova-plugin-touchpinEdit www/js/index.js and add the following code inside onDeviceReady
touchpin.store("mykey", "mysecret", function(result) {
alert(result);
}, function() {
alert("Error calling TouchPin");
});
touchpin.retrieve("mykey", "Please authenticate yourself", function(result) {
alert(result);
}, function() {
alert("Error calling TouchPin");
});Install iOS platform
cordova platform add iosRun the code
cordova runMore Info
For more information on setting up Cordova see the documentation
For more info on plugins see the Plugin Development Guide