diff options
| author | omagdy7 <omar.professional8777@gmail.com> | 2023-12-21 01:26:51 +0200 |
|---|---|---|
| committer | omagdy7 <omar.professional8777@gmail.com> | 2023-12-21 01:26:51 +0200 |
| commit | 7b379914e44583b9b097ed286b669ad244b176a1 (patch) | |
| tree | 32fc660273161a92a0b9784ac5edd6f2f5eea58c /driver/src/firebase/firebase_config.ts | |
| parent | b84fe9a9c4c18a3f4e957f76ead34403c4316f76 (diff) | |
| download | carpool-7b379914e44583b9b097ed286b669ad244b176a1.tar.xz carpool-7b379914e44583b9b097ed286b669ad244b176a1.zip | |
Added Firestore support for both the driver app and the rider mobile app
Diffstat (limited to 'driver/src/firebase/firebase_config.ts')
| -rw-r--r-- | driver/src/firebase/firebase_config.ts | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/driver/src/firebase/firebase_config.ts b/driver/src/firebase/firebase_config.ts index 43a458c..ca0a3e6 100644 --- a/driver/src/firebase/firebase_config.ts +++ b/driver/src/firebase/firebase_config.ts @@ -1,6 +1,7 @@ // Import the functions you need from the SDKs you need import { initializeApp } from "firebase/app"; import { getAuth } from "firebase/auth"; +import { getFirestore } from "firebase/firestore"; // Your web app's Firebase configuration // For Firebase JS SDK v7.20.0 and later, measurementId is optional @@ -17,3 +18,4 @@ const firebaseConfig = { // Initialize Firebase const app = initializeApp(firebaseConfig); export const auth = getAuth(app) +export const db = getFirestore(app) |
