What problem does it solve?
Patterns and conventions for working with Firebase Auth and Firestore in GeroCare. This skill provides a cohesive approach to building auth and data layers, handling errors, and configuring emulators.
Core Features & Use Cases
- Auth Repository Pattern: Always map Firebase errors to domain errors; centralize auth repository scaffolding.
- Firestore Repository Pattern: Convert Firestore timestamps to Date objects; validate documents with Zod; map to domain entities.
- Error Mapping Pattern: Centralized map of FirebaseError codes to domain errors with Spanish messages.
- Emulator & Configuration Guidance: Setup for local emulators with connectAuthEmulator and connectFirestoreEmulator; production offline caching guidance.
- Queries & Data Retrieval Patterns: Safe querying with error handling and results.
Quick Start
Follow the examples in assets to implement the firebase patterns in your features, including Auth and Firestore repositories, error handling, and emulator configuration.