Skip to content

Legacy People Api Error, as its depricated. (Solution) #23

@kazmiali

Description

@kazmiali

Google Depricated legacy People's API for new projects.

I had a problem that the google-plus-token-strategy is using old people's API which was made unavailable for new projects on March 7, 2019. So when you will add you clientID and client secret in the code and run it. So if you try to login it will give error.

Solution

Install the passport-token-google

and replace the require statement of GooglePlusTokenStrategy with:
const GoogleStrategy = require("passport-token-google").Strategy;

After this replace GooglePlusTokenStrategy with GoogleStrategy.

Now everything will work fine.

Metadata

Metadata

Assignees

No one assigned

    Labels

    No labels
    No labels

    Projects

    No projects

    Milestone

    No milestone

    Relationships

    None yet

    Development

    No branches or pull requests

    Issue actions