From a54d02f66c6d1fa195c00fcaa760296acd9fb381 Mon Sep 17 00:00:00 2001 From: nicolasburtey Date: Sat, 21 Dec 2019 10:01:53 -0800 Subject: [PATCH] Update keychain-mobile.js I believe this._RNKeychain.WHEN_UNLOCKED_THIS_DEVICE_ONLY is returning null instead of the right enum --- src/action/keychain-mobile.js | 2 +- 1 file changed, 1 insertion(+), 1 deletion(-) diff --git a/src/action/keychain-mobile.js b/src/action/keychain-mobile.js index 38c35df18..374611d43 100644 --- a/src/action/keychain-mobile.js +++ b/src/action/keychain-mobile.js @@ -18,7 +18,7 @@ class KeychainAction { */ async setItem(key, value) { const options = { - accessible: this._RNKeychain.WHEN_UNLOCKED_THIS_DEVICE_ONLY, + accessible: this._RNKeychain.ACCESSIBLE.WHEN_UNLOCKED_THIS_DEVICE_ONLY, }; const vKey = `${VERSION}_${key}`; await this._RNKeychain.setInternetCredentials(vKey, USER, value, options);