0

I am following this example https://stackoverflow.com/a/39770500/2983051 but unfortunately I am getting:

  1. That’s an error. Error: invalid_request Permission denied to generate login hint for target domain.

I am running angular2 app locally, in my gapi credentials Authorised JavaScript origins and Authorised redirect URIs are http://127.0.0.1:4200

Any ideas how to fix it? maybe good links for using angular2 + nodejs with google oauth2.

Community
  • 1
  • 1
Evilguy
  • 306
  • 2
  • 14

1 Answers1

0

I've found the solution. Good example is here

I was defining the Authorized redirect URI, but for JavaScript API it should stay undefined. enter image description here

Evilguy
  • 306
  • 2
  • 14