Passport: Google+ Sign-In Deprecation

Created on 30 Jan 2019  路  6Comments  路  Source: jaredhanson/passport

Hi there,

We are using passport.js to authenticate people with their Google account. And I'm receiving emails from Google last days that we are using something that's going to be fully deprecated. Screenshot of the email below:

screenshot 2019-01-30 at 10 40 44

Here is the code we have for authentication:

const options = {
authType: "rerequest",
state: JSON.stringify(data),
session: false,
failureRedirect: "/login",
scope: ["profile", "email"],
};
passport.authenticate("google", options)(req, res, next);

Are you going to update the api you are making requests to? Or should I update something in my code?

Environment

Most helpful comment

All 6 comments

Same problem.

@ginovski You can use forked package for now: https://github.com/builderbook/builderbook/issues/195


EDIT: solution suggested by @archiebaer does look simpler : https://stackoverflow.com/a/54112673/10124491

@jaredhanson Are you going to review this PR?
https://github.com/jaredhanson/passport-google-oauth2/pull/51

Any update on the PR ? would be nice to pull the trigger on it

Was this page helpful?
0 / 5 - 0 ratings

Related issues

Gibbo3771 picture Gibbo3771  路  4Comments

puradox picture puradox  路  4Comments

ksmithut picture ksmithut  路  6Comments

andrewbanchich picture andrewbanchich  路  4Comments

franckl picture franckl  路  5Comments