-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.js
36 lines (29 loc) · 1 KB
/
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
32
33
34
35
36
import firebase from 'firebase/app'
import "firebase/auth"
import "firebase/firestore"
const app = firebase.initializeApp({
apiKey: "AIzaSyBVnUxjj-7S6j1PdRwyX1R4OVj-sJwIA5E",
authDomain: "react-login-test-d8f1f.firebaseapp.com",
projectId: "react-login-test-d8f1f",
storageBucket: "react-login-test-d8f1f.appspot.com",
messagingSenderId: "6911833818",
appId: "1:6911833818:web:6ada99989d126476a757e3"
});
const db = app.firestore();
export { db };
export default app;
/*import firebase from 'firebase';
const firebaseConfig = {
apiKey: "AIzaSyBVnUxjj-7S6j1PdRwyX1R4OVj-sJwIA5E",
authDomain: "react-login-test-d8f1f.firebaseapp.com",
projectId: "react-login-test-d8f1f",
storageBucket: "react-login-test-d8f1f.appspot.com",
messagingSenderId: "6911833818",
appId: "1:6911833818:web:6ada99989d126476a757e3"
};
// Initialize Firebase
const firebaseApp = firebase.initializeApp(firebaseConfig);
const db = firebaseApp.firestore();
const auth = firebaseApp.auth();
export { auth };
export default db;*/