Omkar-Sonawane-23 / Tourism

https://tourism-peach.vercel.app
53 stars 120 forks source link

Sign-in/Login - using google firebase #281

Open krithika2543 opened 6 months ago

krithika2543 commented 6 months ago

Add a feature that allows users to log in using their Google account through Firebase Authentication. This way, it will help to create more user interaction and the users can now comment and also rate the page and will be also able to interact with other readers.

Set Up Firebase Project: Create or use an existing project in the Firebase Console. Enable the Google sign-in method under the Authentication section in the Firebase Console. Users click the "Login with Google" button. The frontend handles the Google sign-in process and obtains the ID token, and sends it to the backend. The backend verifies the ID token and manages the user session.

GSSOC'2024 Contributor

prateeksha17 commented 6 months ago

Assign this to me, I will fix this issue.

krithika2543 commented 6 months ago

@Omkar-Sonawane-23 can you please label this as Gssoc24. Actually this step is necessary to create comments section

Shubhi-03 commented 6 months ago

Can you please label this as Gssoc'24. I want to work on it.

sameer-soni commented 6 months ago

firebase is good but most of the people contributing here are new, so they may have problems with the apis and stuffs and we don't want to reveal those important credentials. So what if we go with basic client side authentication by using localstorage or maybe cookies. What do you guys think?

krithika2543 commented 6 months ago

@sameer-soni Yep it makes sense. I am willing to contribute to this idea

sameer-soni commented 6 months ago

@krithika2543 okay, assigning it to you then. Without signing in, users can also access the pages. The reason for the authentication is to have user comments, reviews and their feedbacks of places.

Yogesh-ok55 commented 6 months ago

I have added this feature in my project many times and i feel i am well experienced to do it ,i have studied your code and i feel i can work to make it look better

krithika2543 commented 6 months ago

@sameer-soni hey sorry for the delay, i see the frontend part is done. should i now work on the backend

priyankMS commented 6 months ago

assign me this issue i can fix them