Understand the v7 Modular Architecture
mainThe v7 architecture separates authentication logic from UI rendering, allowing for better flexibility and framework integration. Unlike v6, which was a single monolithic package, v7 uses a composable system of specialized packages:
@firebase-oss/ui-core: The framework-agnostic core containing all authentication logic, state management, behaviors, and utilities. It has no UI dependencies.- Framework-specific packages: Dedicated packages for specific UI implementations:
@firebase-oss/ui-reactfor React applications.@firebase-oss/ui-angularfor Angular applications.@firebase-oss/ui-shadcnfor Shadcn components.
@firebase-oss/ui-styles: A separate package dedicated to styling.@firebase-oss/ui-translations: A separate package for translations.
This architecture uses modern patterns such as TypeScript and reactive stores (nanostores).