-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebaseConfig.js
More file actions
executable file
·38 lines (33 loc) · 1.45 KB
/
firebaseConfig.js
File metadata and controls
executable file
·38 lines (33 loc) · 1.45 KB
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
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { getAnalytics } from "firebase/analytics";
import { getAuth } from "firebase/auth";
import { getFirestore, initializeFirestore } from "firebase/firestore";
import { getDatabase } from "firebase/database";
import 'firebase/messaging';
// 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
// For Firebase JS SDK v7.20.0 and later, measurementId is optional
const firebaseConfig = {
apiKey: "AIzaSyBZFOfMX3PejNNGXZL5Sa2Sl7hjElGFHDM",
authDomain: "appsaudavel-52714.firebaseapp.com",
projectId: "appsaudavel-52714",
storageBucket: "appsaudavel-52714.appspot.com",
messagingSenderId: "535276249779",
appId: "1:535276249779:web:a4f5a91a6475ed5f8586c6",
measurementId: "G-NJG4TW7PWF",
databaseURL: "https://appsaudavel-52714.southamerica-east1.firebasedatabase.app",
};
const firestoreSettings = {
// Increase the timeout to 30 seconds
experimentalAutoDetectLongPolling: true
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
// export const analytics = getAnalytics(app);
export const auth = getAuth(app);
// Initialize Cloud Firestore and get a reference to the service
//export const db = getFirestore(app);
export const db = initializeFirestore(app, firestoreSettings);
export const dbDataBase = getDatabase(app);