A Stencil-based web component library that provides a drop-in authentication UI for Firebase Auth. Version 0.2.0 is the current stable release with no established release cadence. It wraps FirebaseUI Web into reusable custom elements for easy integration in any framework (Angular, React, Vue, etc.) via HTML tags. Key differentiators: framework-agnostic, lazy-loaded, and tree-shakeable. However, it depends on firebase (v9+) and firebaseui (v6+), and the Stencil output targets must be configured correctly.
npm install firebaseui-authNo compatibility data collected yet for this library.
Verified import paths — ran on the pinned version, not inferred.
Initializes Firebase Auth, configures FirebaseUI options, and renders the <firebase-login> component with Stencil loader.
Use getAuth(app) from 'firebase/auth' (modular) instead of firebase.auth() (compat).
Pass uiConfig as a static object or use one-way binding with square brackets in Angular: [uiConfig]="uiConfig".
Import components individually from the dist/components subpath once available.
Call defineCustomElements() in the application entry point (main.ts) before any component usage.
Use the 'signInSuccessWithAuthResult' output on the component.
Add CUSTOM_ELEMENTS_SCHEMA to your Angular module's schemas array.
Run: npm install firebaseui
Add CUSTOM_ELEMENTS_SCHEMA to the module: schemas: [CUSTOM_ELEMENTS_SCHEMA]
Pass auth={auth} where auth is from getAuth()Ensure uiConfig object is passed as a property, e.g., [uiConfig]="uiConfig"