jrendel / SwiftKeychainWrapper

A simple wrapper for the iOS Keychain to allow you to use it in a similar fashion to User Defaults. Written in Swift.
MIT License
1.59k stars 340 forks source link

Clear Data #152

Closed Zeeshan90 closed 4 years ago

Zeeshan90 commented 4 years ago

How to clear data when app uninstalls ??

jrendel commented 4 years ago

When an app is removed, keychain data is not deleted by iOS. You have to manage that yourself. The best option is to track something in user defaults for example after first run. So on a new install that doesn't have that value, you can wipe the keychain.