| | 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" |
| | }; |
| |
|
| | |
| | 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 }; |
| |
|