Нет описания

Max Lynch ee939ec967 Updated readme 10 лет назад
example 57afa6e3f4 Updated example/ 12 лет назад
src 1584564151 Keychain 10 лет назад
www 093fcb2962 WOrking 10 лет назад
.gitignore 104bc00060 Updated to use Cordova 2.2.0 and made it pluginstall-able 13 лет назад
LICENSE 104bc00060 Updated to use Cordova 2.2.0 and made it pluginstall-able 13 лет назад
README.md ee939ec967 Updated readme 10 лет назад
plugin.xml 093fcb2962 WOrking 10 лет назад

README.md

Keychain Plugin for Apache Cordova

created by Shazron Abdullah

Updated by Max Lynch max@ionic.io

Installation

cordova plugin add https://github.com/driftyco/cordova-plugin-ios-keychain

iCloud keychain enabled

iCloud keychain synchonizing is enabled, so the keychain will be mirrored across all devices if the user is signed in to iCloud (Settings > iCloud) and has iCloud keychain turned on (Settings > iCloud > Keychain)

Usage

See the example folder for example usage.

/*
 Retrieves a value for a key and servicename.
 
 @param successCallback returns the value as the argument to the callback when successful
 @param failureCallback returns the error string as the argument to the callback, for a failure
 @param key the key to retrieve
 @param TouchIDMessage the message to show underneath the TouchID prompt (if any)
 */
Keychain.get(successCallback, failureCallback, 'key', 'TouchID Message');

/*
 Sets a value for a key and servicename.
 
 @param successCallback returns when successful
 @param failureCallback returns the error string as the argument to the callback, for a failure
 @param key the key to set
 @param value the value to set
 @param useTouchID whether to store the value with security such that TouchID will be needed to grab it
 */
Keychain.set(successCallback, failureCallback, 'key', 'value', useTouchID);

/*
 Removes a value for a key and servicename.
 
 @param successCallback returns when successful
 @param failureCallback returns the error string as the argument to the callback
 @param key the key to remove
 */
kc.remove(successCallback, failureCallback, 'key');

License

Apache 2.0 License except for the Auth0 SimpelKeychain code that is under MIT