Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

iOS & android keychain items are not erased when the app is uninstalled #625

Open
tarangshah19 opened this issue Mar 4, 2024 · 1 comment

Comments

@tarangshah19
Copy link

iOS & android keychain items are not erased when the app is uninstalled

@bdtren
Copy link

bdtren commented Mar 5, 2024

Hi there,
You mean iOS only, right? It is a feature and there are many dev wanted it to support Android.

Btw, to fix that issue, you can use other packages like https://github.com/react-native-async-storage/async-storage since its storage data will be removed when App is uninstall so you just need to save a flag value and use that to remove keychain value, EX:

const isAppInitialled = await AsyncStorage.getItem('isAppInitialled'); //Should be empty when App is first Install

if (!isAppInitialled) {
    //Delete Keychain data 
    Keychain.resetGenericPassword(...);
}


await AsyncStorage.setItem('isAppInitialled', 'true');

``

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
None yet
Projects
None yet
Development

No branches or pull requests

2 participants