File size: 632 Bytes
8457d97
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
 
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
import { initializeApp, getApps } from "firebase/app";
import { getAuth } from "firebase/auth";
import { getFirestore } from "firebase/firestore";

const firebaseConfig = {
    apiKey: "AIzaSyD0gjMSH04oiyUIjqTiUs3zuLkW7UP1x-s",
    authDomain: "erpjsf.firebaseapp.com",
    projectId: "erpjsf",
    storageBucket: "erpjsf.firebasestorage.app",
    messagingSenderId: "996985286814",
    appId: "1:996985286814:web:7e02e9a31da1deac638b8f"
};

// Initialize Firebase
const app = getApps().length === 0 ? initializeApp(firebaseConfig) : getApps()[0];
const auth = getAuth(app);
const db = getFirestore(app);

export { app, auth, db };