Skip to content
Snippets Groups Projects
Commit 89cd8fbc authored by isaacwsolomon's avatar isaacwsolomon
Browse files

Added exports so they can be used in rest of app to config file

parent 83eb0265
No related branches found
No related tags found
No related merge requests found
import { initializeApp } from 'firebase/app'; import { initializeApp } from 'firebase/app';
import { getAuth } from 'firebase/auth';
import { getFirestore } from 'firebase/firestore';
// Optionally import the services that you want to use // Optionally import the services that you want to use
// import {...} from 'firebase/auth'; // import {...} from 'firebase/auth';
...@@ -18,6 +20,6 @@ const firebaseConfig = { ...@@ -18,6 +20,6 @@ const firebaseConfig = {
measurementId: "G-CPTGYLFRW0" measurementId: "G-CPTGYLFRW0"
}; };
const app = initializeApp(firebaseConfig); export const FIREBASE_APP = initializeApp(firebaseConfig);
// For more information on how to access Firebase in your project, export const FIRESTORE_DB = getFirestore(FIREBASE_APP);
// see the Firebase documentation: https://firebase.google.com/docs/web/setup#access-firebase export const FIREBASE_AUTH = getAuth(FIREBASE_APP);
\ No newline at end of file
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please to comment