-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.js
26 lines (22 loc) · 896 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
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { getAuth } from "firebase/auth";
import { getFirestore } from 'firebase/firestore';
import { getStorage } from 'firebase/storage';
// 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: "AIzaSyBJpOh_7qBQ-RW3eRFGbEYjlQ8F5PixZqQ",
authDomain: "plannetic-sample.firebaseapp.com",
projectId: "plannetic-sample",
storageBucket: "plannetic-sample.appspot.com",
messagingSenderId: "410288536012",
appId: "1:410288536012:web:3eb2e3feaa27ff7a6b8569"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
const auth = getAuth(app);
const db = getFirestore(app);
const storage = getStorage();
export {auth, db, storage}