generated from ReCoded-Org/capstone-react-redux-template
-
Notifications
You must be signed in to change notification settings - Fork 6
/
Copy pathfirebase.js
63 lines (60 loc) · 1.18 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
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
57
58
59
60
61
62
63
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import {
getFirestore,
collection,
getDocs,
addDoc,
deleteDoc,
serverTimestamp,
doc,
orderBy,
limit,
onSnapshot,
query,
where,
} from "firebase/firestore";
import {
getAuth,
GoogleAuthProvider,
signInWithPopup,
createUserWithEmailAndPassword,
updateProfile,
onAuthStateChanged,
signInWithEmailAndPassword,
signOut,
} from "firebase/auth";
const firebaseConfig = {
apiKey: "AIzaSyDJCGj_7ev2PdLoHmbY4y0KnodX6Wr0v38",
authDomain: "recoded-jobie.firebaseapp.com",
projectId: "recoded-jobie",
storageBucket: "recoded-jobie.appspot.com",
messagingSenderId: "347602460457",
appId: "1:347602460457:web:ea8867354e657f8b2be138",
};
const app = initializeApp(firebaseConfig);
const db = getFirestore(app);
const google = new GoogleAuthProvider();
const auth = getAuth();
export {
signInWithPopup,
google,
db,
collection,
getDocs,
addDoc,
deleteDoc,
serverTimestamp,
doc,
auth,
orderBy,
limit,
onSnapshot,
query,
createUserWithEmailAndPassword,
updateProfile,
onAuthStateChanged,
signInWithEmailAndPassword,
signOut,
where
};