When a user logs out we’re wiping the expo-file-system
like this.
const clearExpoFileSystemDocumentDirectory = async () => {
const efs = ExpoFileSystem;
const folderContents = await efs.readDirectoryAsync(efs.documentDirectory);
folderContents.forEach(async (item) => {
await efs.deleteAsync(`${efs.documentDirectory}${item}`);
});
};
Is there a similar approach we could take to wipe expo-secure-store
?