Is there a generic way to wipe expo-secure-store?

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?

Hey @awesomelabs,

There isn’t a way currently to do a full wipe with the SecureStore module. I’d recommend creating a feature request when you have a minute on our Canny board.

Cheers,
Adam

1 Like