diff --git a/package.json b/package.json index cb3f803..4559525 100644 --- a/package.json +++ b/package.json @@ -1,6 +1,6 @@ { "name": "cordova-plugin-keychain-touch-id", - "version": "3.2.0", + "version": "3.2.1", "description": "Scan the fingerprint of your user with the TouchID sensor (iPhone 5S, iPhone 6(S), ..) and control a key in the Keychain", "cordova": { "id": "cordova-plugin-keychain-touch-id", diff --git a/plugin.xml b/plugin.xml index 98c3dd6..eb223ac 100644 --- a/plugin.xml +++ b/plugin.xml @@ -1,7 +1,7 @@ + version="3.2.1"> TouchID and Keychain S.J.Hoeksma TouchID and Keychain cordova plugin for iOS diff --git a/readme.md b/readme.md index 7113df3..5b7c0c9 100644 --- a/readme.md +++ b/readme.md @@ -91,7 +91,7 @@ This invalid key is removed - user needs to **save their password again**. # Examples ```js -if (window.plugins.touchid) { +if (window.plugins) { window.plugins.touchid.isAvailable(function() { window.plugins.touchid.has("MyKey", function() { alert("Touch ID avaialble and Password key available"); @@ -103,19 +103,19 @@ if (window.plugins.touchid) { }); } -if (window.plugins.touchid) { +if (window.plugins) { window.plugins.touchid.verify("MyKey", "My Message", function(password) { alert("Tocuh " + password); }); } -if (window.plugins.touchid) { +if (window.plugins) { window.plugins.touchid.save("MyKey", "My Password", function() { alert("Password saved"); }); } -if (window.plugins.touchid) { +if (window.plugins) { window.plugins.touchid.delete("MyKey", function() { alert("Password key deleted"); });