freeCodeCamp/league-for-good

Issue on setting up Google API credentials

Closed this issue · 6 comments

I have set my .env file like this
MONGO_URI = 'mongodb://localhost:27017/league-for-good'
GOOGLE_CLIENT_ID = '932757790180-0ref2odnm0v9uemj93ib6n3mhr2hescn.apps.googleusercontent.com'
GOOGLE_CLIENT_SECRET = 'Gh4wqdrg1bnUfYHa2BsnXx3x'
SESSION_SECRET = 'xyz'
GOOGLE_CALLBACK_URL = 'http://localhost:4000/auth/google/callback'

still I am getting this error on choosing the account for login after clicking on login button at localhost:4000
screen shot 2017-08-17 at 2 57 07 am

Hi, I also set it up recently, tested it right now and it is working for me.

Have you set up OAuth 2.0 client IDs in Google Dev.console correctly?

Authorized JavaScript origins: http://localhost:4000
Authorized redirect URIs: http://localhost:4000/auth/google/callback

Am I doing it right?

I think, you are doing it right. It same on my settings.

Make sure your Google+ API is enabled - in your project Dashboard.
If not, enable it under the link on top.

league

YEs that was the issue . Thanks @DusanSacha

yes I have reset that. Thank you for the information