-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebase.js
More file actions
21 lines (18 loc) · 749 Bytes
/
Copy pathfirebase.js
File metadata and controls
21 lines (18 loc) · 749 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
import { initializeApp } from "firebase/app";
import { getFirestore, collection, addDoc } from "firebase/firestore";
import { getAuth, signInWithCustomToken } from "firebase/auth";
// Your Firebase configuration
export const firebaseConfig = {
apiKey: "AIzaSyCWFsEWEBcXnIwX0xtYs_wS3M89IYPdUyo",
authDomain: "sunnylist-1f5a2.firebaseapp.com",
projectId: "sunnylist-1f5a2",
storageBucket: "sunnylist-1f5a2.firebasestorage.app",
messagingSenderId: "805392672421",
appId: "1:805392672421:web:153bdfb324289e18494f4c",
measurementId: "G-Q5JHQ2LBLP"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
const db = getFirestore(app);
const auth = getAuth(app);
export { db, addDoc, collection, auth, signInWithCustomToken };