forked from joeephwild/di-hack
-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathfirebase.ts
32 lines (23 loc) · 1002 Bytes
/
firebase.ts
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
// Import the functions you need from the SDKs you need
// Import the functions you need from the SDKs you need
import { initializeApp } from "firebase/app";
import { getDatabase } from "firebase/database";
import { getAuth, EmailAuthProvider } from "firebase/auth"
// 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: "AIzaSyACWp-N8oSQIEDEfr-WkGPxIwYwGZydij4",
authDomain: "lacent-7a6b4.firebaseapp.com",
databaseURL: "https://lacent-7a6b4-default-rtdb.firebaseio.com/",
projectId: "lacent-7a6b4",
storageBucket: "lacent-7a6b4.appspot.com",
messagingSenderId: "388128287208",
appId: "1:388128287208:web:22e1bf229fc29edb909c5d"
};
// Initialize Firebase
const app = initializeApp(firebaseConfig);
const db = getDatabase(app);
const auth = getAuth(app);
const provider = new EmailAuthProvider();
export { provider, auth, app, db };