These 2 packages look very similar:
http://www.passportjs.org/packages/passport-google-oauth2/ http://www.passportjs.org/packages/passport-google-oauth20/
Is one supersede the other or they serve different purpose? New to Google authentication and still trying to make it work.
passport-google-oauth20 has 10x the use of the other, and it has more recent commits.
One of the properties in the profile response for passport-google-oauth2 is isPlusUser
, which suggests that it is not up to date. The readme in the github repository does not match the documentation, and there are a few links in the passport docs that no longer work.
To be fair, I've only ever used passport-google-oauth20. It's possible that pass-port-google-oauth2 works fine, but there is currently a lot more community support for 20.
Hope this helps!
I have the same question. It is pretty confusing. One is much more popular than the other. https://www.npmtrends.com/passport-google-oauth2-vs-passport-google-oauth20
Google is using passport-google-oauth20 in their Node tutorial examples. https://cloud.google.com/nodejs/getting-started/tutorial-app
If you love us? You can donate to us via Paypal or buy me a coffee so we can maintain and grow! Thank you!
Donate Us With