-
Notifications
You must be signed in to change notification settings - Fork 0
Expand file tree
/
Copy pathfirebase.ts
More file actions
24 lines (21 loc) · 898 Bytes
/
Copy pathfirebase.ts
File metadata and controls
24 lines (21 loc) · 898 Bytes
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
// Import the functions you need from the SDKs you need
import { initializeApp, getApp, getApps } from 'firebase/app'
import { getFirestore } from 'firebase/firestore'
import { getAuth } 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: "AIzaSyAmaTWf3mwxfw43rdMA-YJ6AzFBBTty-DQ",
authDomain: "netflix-clone-project-69fe0.firebaseapp.com",
projectId: "netflix-clone-project-69fe0",
storageBucket: "netflix-clone-project-69fe0.appspot.com",
messagingSenderId: "387533932583",
appId: "1:387533932583:web:161df99c9a71d96b2d2602"
};
// Initialize Firebase
const app = !getApps().length ? initializeApp(firebaseConfig) : getApp()
const db = getFirestore()
const auth = getAuth()
export default app
export { auth, db }