-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebase.js
More file actions
26 lines (23 loc) · 917 Bytes
/
firebase.js
File metadata and controls
26 lines (23 loc) · 917 Bytes
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 the functions you need from the SDKs you need
import firebase from "firebase/compat/app";
import "firebase/compat/auth";
import "firebase/compat/firestore";
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
// Your web app's Firebase configuration
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
export const firebaseConfig = {
apiKey: "AIzaSyDoHa2vDE5gm347voD-UytmQk5WT6QeX80",
authDomain: "funcareapp.firebaseapp.com",
projectId: "funcareapp",
storageBucket: "funcareapp.appspot.com",
messagingSenderId: "1077731977889",
appId: "1:1077731977889:web:c16d387b6e063e1a831ee0",
measurementId: "G-EB20LV2RQR",
};
if (firebase.apps.length === 0) {
firebase.initializeApp(firebaseConfig);
}
export const auth = firebase.auth();
export const firestore = firebase.firestore();
export { firebase };