Closed dcalhoun closed 5 years ago
I now realize that the key
parameter for react-native-senstive-info
is in fact being set as the kSecAttrAccount
argument for the iOS Keychain query. Sorry, I'm very unfamiliar with Obj-C and overlooked that fact earlier.
For posterity, I have been able to access some Keychain values set by the Swift app using react-native-sensitive-info
. Unfortunately, I still am unable to access values set via Locksmith
. I am continuing research to find a solution to that issue.
I have a Keychain value that is stored for a specific
kSecAttrAccount
. Is there any way to usereact-native-sensitive-info
to query for an iOS Keychain value by account?For backstory, I am attempting to accomplish the exact same goal as #29. However, my Swift-based iOS app uses
Locksmith.saveData
to store the Keychain value. ThisLocksmith
method stores the value with ankSecAttrAccount
value.I attempt to use
react-native-sensitive-info
to retrieve the Keychain value withLocksmith
's default service, but I receive a value ofundefined
.I see
kSecAttrAccount
referenced in this package's source, but I am unable to find a way to pass an account value toSInfo.getItem
.Any guidance would be greatly appreciated. Thank you for the hard work on this package!