ef899ee5cd
* setup firebase custom token * docs * docs * feat: allow admin removing members from a network * fix: properly handle fallback avatar and names This is especially helpful in the case of members who were removed from a network
17 lines
585 B
TypeScript
17 lines
585 B
TypeScript
import { initializeApp } from 'firebase/app';
|
|
import { getAuth } from "firebase/auth";
|
|
import { getFirestore } from "firebase/firestore";
|
|
import { appConfig } from "@/config/env";
|
|
|
|
export const firebaseApp = initializeApp(appConfig.firebase);
|
|
|
|
export const firebaseAuth = getAuth(firebaseApp);
|
|
|
|
export const firestoreDb = getFirestore(firebaseApp);
|
|
// simplifying setup to debug production issues
|
|
// export const firestoreDb = initializeFirestore(firebaseApp,
|
|
// {
|
|
// localCache:
|
|
// persistentLocalCache(/*settings*/{ tabManager: persistentMultipleTabManager() })
|
|
// });
|