From 89cd8fbcaea8b802413e5ef1bb1099b9584dd9d6 Mon Sep 17 00:00:00 2001 From: isaacwsolomon <isaacwsolomon@gmail.com> Date: Sun, 11 May 2025 19:58:50 +0200 Subject: [PATCH] Added exports so they can be used in rest of app to config file --- firebaseConfig.ts | 8 +++++--- 1 file changed, 5 insertions(+), 3 deletions(-) diff --git a/firebaseConfig.ts b/firebaseConfig.ts index c1f8a80..b89b522 100644 --- a/firebaseConfig.ts +++ b/firebaseConfig.ts @@ -1,4 +1,6 @@ import { initializeApp } from 'firebase/app'; +import { getAuth } from 'firebase/auth'; +import { getFirestore } from 'firebase/firestore'; // Optionally import the services that you want to use // import {...} from 'firebase/auth'; @@ -18,6 +20,6 @@ const firebaseConfig = { measurementId: "G-CPTGYLFRW0" }; -const app = initializeApp(firebaseConfig); -// For more information on how to access Firebase in your project, -// see the Firebase documentation: https://firebase.google.com/docs/web/setup#access-firebase +export const FIREBASE_APP = initializeApp(firebaseConfig); +export const FIRESTORE_DB = getFirestore(FIREBASE_APP); +export const FIREBASE_AUTH = getAuth(FIREBASE_APP); \ No newline at end of file -- GitLab