rubenCodeforges / ng-gapi

ng-gapi a Google api module for Angular 6+

Geek Repo:Geek Repo

Github PK Tool:Github PK Tool

Account domain does not match hosted_domain specified by gapi.auth2.init.

GarfID opened this issue · comments

When attempting to log in via google account that has been allready signed in the app causes an error stating ""Account domain does not match hosted_domain specified by gapi.auth2.init." even so the hosted_domain variable in gapiClientConfig has been configured correctly.
image
image

@GarfID hi , did you set the domain in your google console? https://console.developers.google.com

@rubenCodeforges Yes, furthermore - new user authorisation (or after logout) doesn't causes any error. Only secondary, "allready logged in" attemts, when the popup ifame gives a straight redirect.

https://stackblitz.com/edit/angular-jwwzcr

You can exam example code here.

i will check it but why login with authenticated user ?

I mean you should just refresh the token there was a issue about that, let me find it

Here was a long story about auth #57

@GarfID Посмотрел твой код )))
пиши в телегу если что @codeforges