-
Notifications
You must be signed in to change notification settings - Fork 1
/
Copy pathfirebase.js
53 lines (50 loc) · 935 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
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
import { initializeApp } from "firebase/app";
import {
getAuth,
GoogleAuthProvider,
signInWithPopup,
signOut,
} from "firebase/auth";
import {
getFirestore,
collection,
setDoc,
doc,
addDoc,
getDoc,
serverTimestamp,
query,
where,
getDocs,
orderBy,
} from "firebase/firestore";
const firebaseConfig = {
apiKey: "AIzaSyCYJBSzQ3IDKZ9Px9Hv66oe8fA5Ux9ElTU",
authDomain: "message-me-844d1.firebaseapp.com",
projectId: "message-me-844d1",
storageBucket: "message-me-844d1.appspot.com",
messagingSenderId: "319333336997",
appId: "1:319333336997:web:2906d771a014f650acca4c",
};
const app = initializeApp(firebaseConfig);
const auth = getAuth();
const db = getFirestore();
const provider = new GoogleAuthProvider();
export {
app,
auth,
db,
provider,
signInWithPopup,
collection,
setDoc,
doc,
serverTimestamp,
signOut,
addDoc,
query,
where,
getDocs,
orderBy,
getDoc,
};