madhums / node-express-mongoose-demo

A simple demo app using node and mongodb for beginners (with docker)
https://nodejs-express-demo.fly.dev
MIT License
5.12k stars 1.38k forks source link

Google signIn Not Working #303

Closed madhavi007 closed 5 years ago

pradeep40423 commented 6 years ago

You have to provide the valid google api in .env file. So that it will work.

madhavi007 commented 6 years ago

I already did but still not working.

pradeep40423 commented 6 years ago

I will tell you the steps to integrate it. Give me some times. I will be back soon.

madhums commented 5 years ago
  1. Make sure to create a project on google developer console and use the correct keys/secret in .env file.

  2. Make sure you have specified the callback url correctly (as what you have provided in the passport config)

    Screenshot 2019-03-13 at 18 27 27
  3. Checkout how to configure passport https://github.com/jaredhanson/passport-google-oauth

Google auth should be working fine https://nodejs-express-demo.herokuapp.com/