Skip to content

Commit

Permalink
update .env
Browse files Browse the repository at this point in the history
  • Loading branch information
BamaCharanChhandogi committed Jan 23, 2024
1 parent 56c1ee8 commit 8b1ef7e
Show file tree
Hide file tree
Showing 4 changed files with 24 additions and 14 deletions.
1 change: 1 addition & 0 deletions .gitignore
Original file line number Diff line number Diff line change
Expand Up @@ -12,6 +12,7 @@
/build

# misc
.env
.DS_Store
.env.local
.env.development.local
Expand Down
6 changes: 0 additions & 6 deletions src/.env

This file was deleted.

7 changes: 7 additions & 0 deletions src/App.js
Original file line number Diff line number Diff line change
Expand Up @@ -13,6 +13,13 @@ import About from "./pages/About";
export default function App() {
let githubUsername;
const navigate = useNavigate();
//delete document.cookie
function delete_cookie(name) {
document.cookie = name +'=; Path=/; Expires=Thu, 01 Jan 1970 00:00:01 GMT;';
}
if (document.cookie.length > 19) {
delete_cookie("_xsrf");
}
function authenticateUser() {
auth
.signInWithPopup(provider)
Expand Down
24 changes: 16 additions & 8 deletions src/firebase.js
Original file line number Diff line number Diff line change
Expand Up @@ -6,15 +6,23 @@ import "firebase/compat/firestore";
import "firebase/compat/database";

// Your web app's Firebase configuration
// const firebaseConfig = {
// apiKey: "AIzaSyBZz2Y7jQpqu7lywQme8kRs77MpF5h9ZfM",
// authDomain: "gitfinder-5dde8.firebaseapp.com",
// projectId: "gitfinder-5dde8",
// storageBucket: "gitfinder-5dde8.appspot.com",
// messagingSenderId: "846943126401",
// appId: "1:846943126401:web:9cf71dd8b7f365c4605e80",
// measurementId: "G-WW75V7S61R"
// };
const firebaseConfig = {
apiKey: "AIzaSyBZz2Y7jQpqu7lywQme8kRs77MpF5h9ZfM",
authDomain: "gitfinder-5dde8.firebaseapp.com",
projectId: "gitfinder-5dde8",
storageBucket: "gitfinder-5dde8.appspot.com",
messagingSenderId: "846943126401",
appId: "1:846943126401:web:9cf71dd8b7f365c4605e80",
measurementId: "G-WW75V7S61R"
};
apiKey: process.env.REACT_APP_API_KEY,
authDomain: process.env.REACT_APP_AUTH_DOMAIN,
projectId: process.env.REACT_APP_PROJECT_ID,
storageBucket: process.env.REACT_APP_STORAGE,
messagingSenderId: process.env.REACT_APP_MSI,
appId: process.env.REACT_APP_APP_ID
}

// Initialize Firebase
const firebaseApp = firebase.initializeApp(firebaseConfig);
Expand Down

0 comments on commit 8b1ef7e

Please sign in to comment.