madhums/node-express-mongoose-demo

Google signIn Not Working

madhavi007 opened this issue · 4 comments

Google signIn Not Working

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

I already did but still not working.

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

  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/