-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.js
31 lines (25 loc) · 894 Bytes
/
firebase.js
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
28
29
30
31
// 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
const firebaseConfig = {
apiKey: "AIzaSyBpb4EknJwBBrFhPtXQUBiqTa_H9XbU1xQ",
authDomain: "mymentee-60613.firebaseapp.com",
projectId: "mymentee-60613",
storageBucket: "mymentee-60613.appspot.com",
messagingSenderId: "423996447073",
appId: "1:423996447073:web:476a1c054a39484e0f0d20"
};
// Initialize Firebase
let app;
if (firebase.apps.length === 0) {
app = firebase.initializeApp(firebaseConfig)
} else {
app = firebase.app();
}
const db = app.firestore();
const auth = firebase.auth();
export { db, auth };