Skip to content

Commit

Permalink
authentication
Browse files Browse the repository at this point in the history
  • Loading branch information
MonalikaPatnaik committed Mar 17, 2024
1 parent 4a7798f commit d68ac01
Show file tree
Hide file tree
Showing 2 changed files with 11 additions and 6 deletions.
6 changes: 4 additions & 2 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -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
Expand All @@ -23,4 +24,5 @@ yarn-debug.log*
yarn-error.log*

#file
package-lock.json
package-lock.json
.vercel
11 changes: 7 additions & 4 deletions frontend/src/firebase-config.js
Original file line number Diff line number Diff line change
Expand Up @@ -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}`,
Expand All @@ -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);

Expand Down

0 comments on commit d68ac01

Please sign in to comment.