Logo Questions Linux Laravel Mysql Ubuntu Git Menu
 

403 Message: Legacy People API has not been used in project [duplicate]

Tags:

Google API is active but give error ; Legacy People API has not been used in project before or it is disabled. Enable it by visiting https://console.developers.google.com/apis/api/legacypeople.googleapis.com/overview?project= then retry. If you enabled this API recently, wait a few minutes for the action to propagate to our systems and retry.

like image 680
Ömer ARGIN Avatar asked Oct 31 '19 14:10

Ömer ARGIN


2 Answers

You don't need to install any other APIs like Google Drive API, Google Sheets API or other except Google+ API,

The error is coming because of "passport-google-oauth": "^1.0.0"

Just change the version "passport-google-oauth": "^1.0.0" to "passport-google-oauth": "^2.0.0" and remove node_modules and package.lock.json file and run "npm i"

That's it

like image 113
Mohd Sahil Avatar answered Sep 17 '22 15:09

Mohd Sahil


Before the Google+ API Shutdown on March 7, 2019, the people.get and people.getOpenIdConnect methods were available for requesting a person’s profile.

To avoid breaking existing integrations with these methods supporting sign-in, a new minimal implementation only returns basic fields necessary for that functionality, such as name and email address, if authorized by the user. The Legacy People API is where these methods will remain available for existing callers at the existing HTTP endpoints.

The Legacy People API serves a limited new implementation of the legacy Google+ API people.get and people.getOpenIdConnect methods necessary for maintaining sign-in functionality. It is available to existing callers of the original methods that haven't migrated to recommended replacements such as Google Sign-in or Google People API at the time of the Google+ API shutdown.

enter link description here

Thanks

like image 25
Ilan Laloum Avatar answered Sep 19 '22 15:09

Ilan Laloum