mirror of
https://github.com/hanzoai/ui.git
synced 2026-11-20 22:36:27 +00:00
- Create @hanzo/auth-firebase v1.0.0 as optional Firebase provider
- Update @hanzo/auth v2.6.0 with pluggable auth provider system
- Update @hanzo/commerce v7.4.0 with optional Firebase peer dependency
- Add StubAuthService for graceful failures when no provider configured
- Add registerAuthProvider() for runtime provider registration
BREAKING CHANGE: Firebase is no longer bundled with @hanzo/auth.
Install @hanzo/auth-firebase and register it if you need Firebase auth:
import { FirebaseAuthService } from '@hanzo/auth-firebase'
import { registerAuthProvider } from '@hanzo/auth'
registerAuthProvider('firebase', FirebaseAuthService)
31 lines
782 B
TypeScript
31 lines
782 B
TypeScript
/**
|
|
* @hanzo/auth-firebase
|
|
*
|
|
* Firebase authentication provider for @hanzo/auth
|
|
*
|
|
* This package is OPTIONAL - only install if you need Firebase authentication.
|
|
* The core @hanzo/auth package works without Firebase.
|
|
*
|
|
* Usage:
|
|
* ```ts
|
|
* import { FirebaseAuthService } from '@hanzo/auth-firebase'
|
|
* import { registerAuthProvider } from '@hanzo/auth'
|
|
*
|
|
* // Register Firebase as the auth provider
|
|
* if (FirebaseAuthService.isConfigured()) {
|
|
* registerAuthProvider('firebase', FirebaseAuthService)
|
|
* }
|
|
* ```
|
|
*/
|
|
|
|
// Client-side exports
|
|
export { FirebaseAuthService, isFirebaseConfigured } from './service'
|
|
|
|
// Re-export types from @hanzo/auth for convenience
|
|
export type {
|
|
AuthService,
|
|
AuthServiceConf,
|
|
HanzoUserInfo,
|
|
HanzoUserInfoValue
|
|
} from '@hanzo/auth'
|