File size: 1,027 Bytes
cc276cc | 1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 | import { initializeApp, getApp, getApps, FirebaseApp } from "firebase/app";
import { getAuth, Auth } from "firebase/auth";
import { getFirestore, Firestore } from "firebase/firestore";
import { getDatabase, Database } from "firebase/database";
import { getStorage, FirebaseStorage } from "firebase/storage";
export const firebaseConfig = {
apiKey: "AIzaSyDwg6jgZxw6454FIYDqEAWOo_dwuWo1yCA",
authDomain: "whisperlink-2moar.firebaseapp.com",
databaseURL: "https://whisperlink-2moar-default-rtdb.firebaseio.com",
projectId: "whisperlink-2moar",
storageBucket: "whisperlink-2moar.appspot.com",
messagingSenderId: "411244753604",
appId: "1:411244753604:web:1931b16728cd45c412cf91"
};
// Initialize Firebase
const app: FirebaseApp = !getApps().length ? initializeApp(firebaseConfig) : getApp();
const auth: Auth = getAuth(app);
const db: Firestore = getFirestore(app);
const rtdb: Database = getDatabase(app);
const storage: FirebaseStorage = getStorage(app);
export { app, auth, db, rtdb, storage };
|