-
-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebase.ts
More file actions
18 lines (15 loc) · 610 Bytes
/
firebase.ts
File metadata and controls
18 lines (15 loc) · 610 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
import { getApp, getApps, initializeApp } from "firebase/app";
import { getFirestore } from "firebase/firestore";
import { getAuth } from "firebase/auth";
const firebaseConfig = {
apiKey: "AIzaSyBXDYEnbCYrnIGZGN1Coys1wfiTMnLCdOg",
authDomain: "portfolio-21e64.firebaseapp.com",
projectId: "portfolio-21e64",
storageBucket: "portfolio-21e64.appspot.com",
messagingSenderId: "482878943553",
appId: "1:482878943553:web:5e71468c294b1c453b31c0",
};
const app = getApps().length ? getApp() : initializeApp(firebaseConfig);
const db = getFirestore(app);
const auth = getAuth(app);
export { db, auth };