Stack Overflow is a community of 4.7 million programmers, just like you, helping each other.

Join them; it only takes a minute:

Sign up
Join the Stack Overflow community to:
  1. Ask programming questions
  2. Answer and help your peers
  3. Get recognized for your expertise

I have angular fullstack running on localhost:9000

I want to be able to login by clicking the Connect with Google+ button on login page. It does not work and I keep getting error 400. Error: redirect_uri_mismatch

I have been to Google developers console and set up a Project

I have set the following in the Google Developers Console

Client ID <Client ID>

Client Secret <Client Secret>

Redirect URIs http://localhost:9000/auth/google/oauth2callback

Javascript Origins http://localhost:9000

In the local.env.js

GOOGLE_ID: <Client ID>

GOOGLE_SECRET: <Client Secret>

When I go to login by clicking the Connect with google+ button I get error 400.

Error: redirect_uri_mismatch

The redirect URI in the request: http://localhost:9000/auth/google/callback

Does anyone know what I'm doing wrong or can explain to me how to set this up?

share|improve this question

I found the answer to my own problem.

I altered the Redirect URI in the Google Developers Console.

so that is the following:

Redirect URIs http://localhost:9000/auth/google/callback

share|improve this answer

Your Answer

 
discard

By posting your answer, you agree to the privacy policy and terms of service.

Not the answer you're looking for? Browse other questions tagged or ask your own question.