Skip to main content

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:

Basic: AsyncStorage

The simplest approach, but AsyncStorage is unencrypted. Only suitable for development.
For production apps, use react-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 to ios/YourApp/Info.plist:

Next Steps