From 7efae775e183242557c88f89eadadce692e2c644 Mon Sep 17 00:00:00 2001 From: Vojtech Novak Date: Sun, 25 Feb 2018 22:18:26 +0100 Subject: [PATCH] Update README.md --- README.md | 6 +++++- 1 file changed, 5 insertions(+), 1 deletion(-) diff --git a/README.md b/README.md index 87446e2..3ec12eb 100644 --- a/README.md +++ b/README.md @@ -52,6 +52,10 @@ Error: { See `KeychainExample` for fully working project example. +Both `setGenericPassword` and `setInternetCredentials` allow to store strings only! + +Both `getInternetCredentials` and `getGenericPassword` will resolve to the stored value, or to false, in case there is no record stored. They will reject only if an unexpected error is encountered. + ```js import * as Keychain from 'react-native-keychain'; @@ -71,7 +75,7 @@ Keychain .then(function(credentials) { console.log('Credentials successfully loaded for user ' + credentials.username); }).catch(function(error) { - console.log('Keychain couldn\'t be accessed! Maybe no value set?', error); + console.log('Keychain couldn\'t be accessed!', error); }); // service argument optional