locked=true, reading it back triggers the biometric prompt.
Storage Vault uses iCloud Key Value Store on iOS and Android Key/Value Backup on Android. Data syncs automatically across all devices sharing the same Apple ID or Google account.
Installation
- Bundle
- CDN
How it works
Callsetvault:// to store a value and readvault:// to read it back. If the key does not exist, readvault:// throws, wrap in try/catch to handle first-time users.
locked=true to require biometric authentication before a value can be read:
Common patterns
Prevent free trial abuse
Data survives uninstall and reinstall, so you can identify users who have already used a trial even after they delete and re-download the app.Persist a login session
Protect a sensitive action with Face ID
Resources
NPM Package
despia-native