Skip to content

fix : removed console.log exposing Firebase API key - #2045

Open
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:fix/firebase-no-api-key-log
Open

fix : removed console.log exposing Firebase API key#2045
tmdeveloper007 wants to merge 1 commit into
aryandas2911:mainfrom
tmdeveloper007:fix/firebase-no-api-key-log

Conversation

@tmdeveloper007

Copy link
Copy Markdown

Summary of What Has Been Done

Removed the top-level console.log statement from firebase.js that was outputting the Firebase API key to the browser developer console.

Changes Made

  1. frontend/src/utils/firebase.js line 4: Removed console.log("Firebase API Key:", import.meta.env.VITE_FIREBASE_API_KEY);

Impact it Made

  • Prevents sensitive configuration values from leaking into browser developer console logs.
  • Follows security best practices for API key handling in frontend applications.
  • Firebase authentication continues to work correctly without this debug log.

Closes #2039

Note: Please assign this PR to the tmdeveloper007 account.

Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

bug : remove console.log exposing Firebase API key in firebase.js

1 participant