passport-google-oauth2 icon indicating copy to clipboard operation
passport-google-oauth2 copied to clipboard

Breaking changes in 2.0?

Open paglias opened this issue 6 years ago • 3 comments

Hello,

I was wondering if there's a list of breaking changes to upgrade from version 1 to 2

Thanks

paglias avatar Jun 01 '19 11:06 paglias

Me too what is changed in version 2.0.0? Where can we find a changelog?

thanks

Ks89 avatar Jun 24 '19 10:06 Ks89

Looking at the commit history, this appears to be the only material change: https://github.com/jaredhanson/passport-google-oauth2/pull/53

This changes the strategies default behavior for fetching a users Google profile information to the Google OpenID Connect userinfo endpoint instead of the deprecated Google+ Profile API endpoint. According to the Google docs, these endpoints do have different response formats, but it seems like this strategy tries to normalize the formats into something consistent – see the /lib/profile directory.

As far as I can tell – the profile.gender property would no longer be populated, and profile.emails[] now has a verified property and no longer has a type property.

schnerd avatar Aug 30 '19 16:08 schnerd

@schnerd thanks

Ks89 avatar Sep 03 '19 11:09 Ks89