Harshal0902 / Rudra

RUDRA: A web application for Police and Public Assistance.
https://rudraweb.netlify.app
MIT License
12 stars 48 forks source link

Sign in with Google account feature request #120

Closed PrathmeshMutke closed 3 years ago

PrathmeshMutke commented 3 years ago

Is your feature request related to a problem? Please describe.

Adding google account sign in feature

Describe the solution you'd like

After adding google sign in feature no need to write name, email etc.

PrathmeshMutke commented 3 years ago

LGM SOC 2021

Harshal0902 commented 3 years ago

@PrathmeshMutke go for it

PrathmeshMutke commented 3 years ago

Help wanted

ayushnau commented 3 years ago

I want to do this please assign it to me

Harshal0902 commented 3 years ago

@Ayush2020012016 go ahead

ayushnau commented 3 years ago

I need site privacy policy,terms of service support email and if possible the logo for the website and I thing right now there is no such things.

Harshal0902 commented 3 years ago

@Ayush2020012016 you can use Firebase for implementing the google auth. I have enable the google auth.

ayushnau commented 3 years ago

Ah I have a little confusion where do I place sign in button in front page or any where else.

Harshal0902 commented 3 years ago

Place it inside the English/Police/index.html and English/Public/index.html file

ayushnau commented 3 years ago

the error is coming not because of code but because of domain we are using to run the site. this is suggested solution and it will corrected from your firebase console.

{The current domain is not authorized for OAuth operations. This will prevent signInWithPopup, signInWithRedirect, linkWithPopup and linkWithRedirect from working. Add your domain (127.0.0.1) to the OAuth redirect domains list in the Firebase console -> Auth section -> Sign in method tab.}

Harshal0902 commented 3 years ago

Even if I do so, the code is incomplete, its not redirecting to the home page, and and Google auth. is enable along with the domain. So please check the code again.

ayushnau commented 3 years ago

gogglesigninerror

its showing same thing again after adding redirect code

Harshal0902 commented 3 years ago

@Ayush2020012016 just add the redirection link, I will check this out