-
Notifications
You must be signed in to change notification settings - Fork 0
/
firebase.ts
24 lines (21 loc) · 856 Bytes
/
firebase.ts
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
import { getApp, getApps, initializeApp } from "firebase/app";
import { getAuth } from "firebase/auth";
import firebase from "firebase/compat/app";
import { getFirestore } from "firebase/firestore";
import { getFunctions } from "firebase/functions";
// web firebase configuration
const firebaseConfig = {
apiKey: "AIzaSyDGDc8kOLc0Q3csyseQO5lF3BIVcsqN_Mg",
authDomain: "talk-translator-5513a.firebaseapp.com",
projectId: "talk-translator-5513a",
storageBucket: "talk-translator-5513a.appspot.com",
messagingSenderId: "981427313812",
appId: "1:981427313812:web:5b493127c98b64ffa1a881",
measurementId: "G-JZFH3G2C9G"
};
// Initialize Firebase
const app = getApps().length ? getApp() : initializeApp(firebaseConfig);
const auth = getAuth(app);
const db = getFirestore(app);
const functions = getFunctions(app);
export { db, auth, functions };