-
Notifications
You must be signed in to change notification settings - Fork 1
Expand file tree
/
Copy pathfirebaseConfig.js
More file actions
34 lines (29 loc) · 1.15 KB
/
firebaseConfig.js
File metadata and controls
34 lines (29 loc) · 1.15 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
/**
* Firebase Configuration File
*
* Initializes and exports Firebase services used in the app:
* - Authentication (getAuth)
* - Firestore Database (getFirestore)
*
* Make sure the configuration object uses your project's Firebase credentials.
* For additional Firebase services, import and initialize as needed:
* https://firebase.google.com/docs/web/setup#available-libraries
*/
// firebaseConfig.js
import { initializeApp } from 'firebase/app'
import { getAuth } from 'firebase/auth'
import { getFirestore } from 'firebase/firestore' // Import Firestore
// TODO: Add SDKs for Firebase products that you want to use
// https://firebase.google.com/docs/web/setup#available-libraries
const firebaseConfig = {
apiKey: 'AIzaSyDJCwZZjxg-wXxvnEv6Q4gwCwsrcJ4-7Hw',
authDomain: 'urp-project-9b5ce.firebaseapp.com',
projectId: 'urp-project-9b5ce',
storageBucket: 'urp-project-9b5ce.firebasestorage.app',
messagingSenderId: '21617305638',
appId: '1:21617305638:web:e4408319495bfaf5039ee7'
}
const app = initializeApp(firebaseConfig)
const auth = getAuth(app)
const db = getFirestore(app) // Initialize Firestore
export { auth, db } // Export Firestore instance