Session Storage
This guide covers securely storing and restoring Privacy Boost sessions in React Native, expanding on the persistence options in Key Management.Storage Options
React Native offers several storage options with different security trade-offs:| Storage | Security | Use when |
|---|---|---|
| AsyncStorage | Low (unencrypted) | Development only |
| react-native-keychain | High (OS keychain) | Production apps |
Basic: AsyncStorage
The simplest approach, but AsyncStorage is unencrypted. Only suitable for development.Recommended: react-native-keychain
For production apps, usereact-native-keychain to store sessions in the platform’s secure storage (iOS Keychain / Android Keystore).
Install
Session Manager
With Biometric Protection
Add Face ID / fingerprint requirement to access stored sessions:Check Biometric Availability
Usage in a React Native Component
iOS Configuration
Add Face ID usage description toios/YourApp/Info.plist: