-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathFireBase.js
More file actions
27 lines (25 loc) · 1.13 KB
/
Copy pathFireBase.js
File metadata and controls
27 lines (25 loc) · 1.13 KB
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
27
// Import the functions you need from the SDKs you need
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
//import { getAnalytics } from "firebase/analytics";
import { getFirestore, collection, getDocs } from 'firebase/firestore/lite';
import {getAuth} from 'firebase/auth';
// 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
const firebaseConfig = {
apiKey: "AIzaSyByebH26g_gFLYzOpxK-rf_1ulBHB3JvRE",
authDomain: "clone-656f4.firebaseapp.com",
projectId: "clone-656f4",
storageBucket: "clone-656f4.appspot.com",
messagingSenderId: "1033872989910",
appId: "1:1033872989910:web:6ffeca01f4e9427f7b7377",
measurementId: "G-99W2XYD0E2"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
export const db = getFirestore(app);
export const auth = getAuth(app);
//const analytics = getAnalytics(app);