I'm trying to use react-native-keychain api and having some problems with getAllGenericPasswordServices()
I want to retrieve all the names of the passwords that I stored in the keychain in typeof array so I could show the client a list of all of his keychain names. but unfortunately, the typeof the response is Object :(. is it possible to retrieve an array ?
import * as Keychain from 'react-native-keychain';
export const getAllProperties = async () => {
try {
const allProperties = await Keychain.getAllGenericPasswordServices();
if (allProperties) {
console.log(
'add new code utils - getAllProperties - ' +
allProperties +
typeof allProperties,
);
} else {
console.log('No credentials stored');
}
} catch (error) {
console.log("Keychain couldn't be accessed!", error);
}
};
and another question ;) I'm testing this library using android studio emulator and i'ts not seem to be so secure, I mean I Can retrieve the data without any faceId, code or fingerPrint request.. Is it becuse of the emulator or I should enable it in the code ?