Persistence check for iOS / macOS
Detects whether the app is a fresh install or a reinstall, which can influence authentication flows and user data management. Handles nuances of persistence across iOS and macOS.
- Assert database existence
- Assert keychain key existence
- Assert userdefault existence
- Reset userdefault and keychain
Persistence.hasAppBeenDeleted(dbFilePath: "", privKeyName: "")
Persistence.isNewInstall(dbFilePath: "", privKeyName: "")
Persistence.reset()
.package(url: "https://github.com/sentryco/PersistenceKit")
- Add dependency list to readme
- Use smaller Keychain lib, from telemetry etc