codeforcauseorg / edu-client

Product focuses on 100% education as well as upskilling developing countries and rural areas.
https://educlient.codeforcause.org/
MIT License
130 stars 150 forks source link

[Bug] Env variable in authService Api key not matching with key defined in .env.example #104

Closed NeelParihar closed 3 years ago

NeelParihar commented 3 years ago

Describe the bug

In services/authService.js the env key for firebase api key is REACT_APP_FIREBASE_API_KEY but in .env.example the key is defined as REACT_APP_API_KEY, this does not allow the application to connect with firebase.

To Reproduce

Steps to reproduce the behavior:

  1. Clone the project, install all the dependencies.
  2. copy .env.example to .env file, put your firebase credentials.
  3. Run the app using npm start.
  4. see browser console, which gives a error for api key not valid.
Screenshot 2021-03-16 at 12 54 01 PM

Expected behavior

After setting up the project and setting up the .env file it should be able to connect to firebase when the app is running.

Screenshot 2021-03-16 at 12 56 41 PM

Logs

Screenshot 2021-03-16 at 12 52 29 PM

Environment

Anurag5086 commented 3 years ago

@NeelParihar I made a PR for this issue.

san0808 commented 3 years ago

has thr pr been not merged yet because i am still getting the problem @Anurag5086

Anurag5086 commented 3 years ago

@san0808 Not yet. Please merge the PR #105 @Abhishek-kumar09 @rajatgupta24 .

Abhishek-kumar09 commented 3 years ago

Fix is merged.