From d68ac010160323288f63f483bd367dd92b879d36 Mon Sep 17 00:00:00 2001 From: Monalika Patnaik Date: Sun, 17 Mar 2024 20:20:08 +0530 Subject: [PATCH] authentication --- .gitignore | 6 ++++-- frontend/src/firebase-config.js | 11 +++++++---- 2 files changed, 11 insertions(+), 6 deletions(-) diff --git a/.gitignore b/.gitignore index ca0ead9..8ca84b7 100644 --- a/.gitignore +++ b/.gitignore @@ -13,7 +13,8 @@ Express_js_Server/node_modules/ # misc .DS_Store -.env.local +.env*.local +.env .env.development.local .env.test.local .env.production.local @@ -23,4 +24,5 @@ yarn-debug.log* yarn-error.log* #file -package-lock.json \ No newline at end of file +package-lock.json +.vercel diff --git a/frontend/src/firebase-config.js b/frontend/src/firebase-config.js index b2a29a0..5dacef2 100644 --- a/frontend/src/firebase-config.js +++ b/frontend/src/firebase-config.js @@ -2,11 +2,7 @@ import { initializeApp } from "firebase/app"; import { getAuth, GoogleAuthProvider} 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 -// For Firebase JS SDK v7.20.0 and later, measurementId is optional const firebaseConfig = { apiKey: `${process.env.apiKey}`, authDomain: `${process.env.authDomain}`, @@ -16,6 +12,13 @@ const firebaseConfig = { appId: `${process.env.appId}`, }; +console.log("apiKey:", process.env.REACT_APP_apiKey); +console.log("authDomain:", process.env.REACT_APP_authDomain); +console.log("projectId:", process.env.REACT_APP_projectId); +console.log("storageBucket:", process.env.REACT_APP_storageBucket); +console.log("messagingSenderId:", process.env.REACT_APP_messagingSenderId); +console.log("appId:", process.env.REACT_APP_appId); + // Initialize Firebase const app = initializeApp(firebaseConfig);