-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.js
27 lines (23 loc) · 1013 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
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { getAuth } from "firebase/auth";
import { initializeFirestore } from "firebase/firestore";
// Import the functions you need from the SDKs you need
// 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: "AIzaSyDbWCpX66SoT01xEXwsI5CRC1uO7aaSYy0",
authDomain: "authenticationapp-3578e.firebaseapp.com",
databaseURL: "https://authenticationapp-3578e-default-rtdb.firebaseio.com",
projectId: "authenticationapp-3578e",
storageBucket: "authenticationapp-3578e.appspot.com",
messagingSenderId: "1462505544",
appId: "1:1462505544:web:7d7fef1b9e041f87c8087d"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
export const auth = getAuth(app);
export const db = initializeFirestore(app, {
experimentalForceLongPolling: true,
});