Cookie & Local Storage Policy
Effective Date: August 30, 2026 | Version: 0.9.8 | Inquiries: privacy@mainnutrition.app
Table of Contents
1. What Are Cookies & Local Storage?
Cookies and modern web storage mechanisms (such as HTML5 localStorage and IndexedDB) are small data structures stored directly on your client device by your browser. They allow progressive web applications like Main Nutrition to remember your authentication session, preserve your visual theme preferences, and maintain seamless offline meal logging.
2. How Main Nutrition Uses Local Storage
Unlike traditional advertising platforms, Main Nutrition does NOT use third-party tracking cookies or cross-site behavioral advertising cookies. Our storage usage is strictly categorized into:
- Essential Storage: Required for secure user authentication, verifying Firebase session tokens, and routing API requests securely.
- Functional Storage: Remembers your preferred interface skin (Default Minimalist, S.T.A.L.K.E.R. Zone, Cyberpunk), language preferences, and audio sound effects.
- Offline Resilience Storage: Powered by IndexedDB and local stores (localDb) so you can log meals, liquids, and weights even when disconnected from the internet. Queued entries sync automatically once connectivity is restored.
3. Breakdown of Storage Items
| Storage Key / Type | Category | Purpose & Duration |
|---|---|---|
| firebase:authUser:* (IndexedDB/Storage) | Essential | Maintains your authenticated session token securely across page reloads. |
| app_theme / app_skin (localStorage) | Functional | Saves your chosen visual skin (Light, Dark, S.T.A.L.K.E.R., Cyberpunk). Persistent. |
| app_lang (localStorage) | Functional | Stores your preferred language locale (English US, UK, Ukrainian). Persistent. |
| localDb / offline_queue (IndexedDB) | Offline Caching | Buffers newly logged meals and liquids offline to prevent data loss during network drops. |
| fab_position (localStorage) | Functional | Preserves your custom placement of the floating action logging button on mobile screens. |
4. Third-Party Storage & Services
- Stripe: When opening subscription billing or customer portal frames, Stripe utilizes essential cookies to prevent credit card fraud and authenticate checkout sessions (PCI-DSS compliant).
- Google OAuth: During Google Sign-In, Google handles single-sign-on tokens to authenticate your account identity securely.
5. Managing & Clearing Storage
You can manage or clear your cookies and local storage data at any time via your browser settings:
- In-App Wipe: Clicking Delete Account or Purge Local Cache in the app's settings instantly empties local IndexedDB and localStorage entries.
- Chrome / Edge / Safari / Firefox: Open Settings → Privacy & Security → Clear Browsing Data → Cookies and other site data.
Note: Clearing essential storage will sign you out of your current session and require re-authentication.
6. Contact Information
If you have any questions regarding our storage practices, please contact: