-
Notifications
You must be signed in to change notification settings - Fork 0
/
firebase.js
28 lines (24 loc) · 847 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
// Import the functions you need from the SDKs you need
import firebase from 'firebase';
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
import 'firebase/firestore';
// Your web app's Firebase configuration
const firebaseConfig = {
apiKey: 'AIzaSyBJ1Omuv_omR5wvnQ0h2FO61W3dCsgYX6A',
authDomain: 'geotalk-e9805.firebaseapp.com',
projectId: 'geotalk-e9805',
storageBucket: 'geotalk-e9805.appspot.com',
messagingSenderId: '623024648698',
appId: '1:623024648698:web:2f2de63d8788cb57fb3443',
};
// Initialize Firebase
let app;
if (firebase.apps.length === 0) {
app = firebase.initializeApp(firebaseConfig);
} else {
app = firebase.app();
}
const auth = firebase.auth();
const fireStore = firebase.firestore();
export { auth, app, fireStore, firebase };