Files
ui/pkg/auth-firebase/package.json
zeekay ce8cf94ef8 feat(auth): make Firebase optional, add @hanzo/auth-firebase package
- 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)
2026-01-24 13:14:08 -08:00

51 lines
1.2 KiB
JSON

{
"name": "@hanzo/auth-firebase",
"version": "1.0.0",
"description": "Firebase authentication provider for @hanzo/auth",
"publishConfig": {
"registry": "https://registry.npmjs.org/",
"access": "public",
"scope": "@hanzo"
},
"author": "Hanzo AI, Inc.",
"license": "BSD-3-Clause",
"repository": {
"type": "git",
"url": "git+https://github.com/hanzoai/react-sdk.git",
"directory": "pkg/auth-firebase"
},
"keywords": [
"auth",
"firebase",
"hanzoai",
"hanzo"
],
"main": "index.ts",
"scripts": {
"lat": "npm show @hanzo/auth-firebase version",
"pub": "npm publish",
"tc": "tsc",
"build": "tsc --outDir dist --declaration --emitDeclarationOnly false --module ESNext --esModuleInterop true --skipLibCheck true --sourceMap true"
},
"exports": {
".": "./index.ts",
"./server": "./server/index.ts",
"./service": "./service/index.ts"
},
"dependencies": {
"firebase-admin": "^12.1.0"
},
"peerDependencies": {
"@hanzo/auth": "workspace:*",
"firebase": "^10.8.0",
"mobx": "^6.12.3",
"mobx-react-lite": "^4.0.7",
"next": ">=14.2.16"
},
"devDependencies": {
"@types/node": "^24.4.0",
"@types/react": "^19.0.0",
"typescript": "5.6.3"
}
}