jaredhanson / passport-google-oauth2

Google authentication strategy for Passport and Node.js.
https://www.passportjs.org/packages/passport-google-oauth20/?utm_source=github&utm_medium=referral&utm_campaign=passport-google-oauth20&utm_content=about
MIT License
812 stars 154 forks source link

Integration with Google Contacts #62

Open akshaynr opened 4 years ago

akshaynr commented 4 years ago

Hello,

I am trying to fetch google contacts as well as user basic profile and email.

I had added following things in scope: scope: ['https://www.googleapis.com/auth/contacts.readonly','profile', 'email']

But I am only getting user contacts. I am not able to fetch both user profile info as well as user contacts.

How can I get profile information as well as contacts together?

Environment

christykusuma commented 3 years ago

I'm having this issue as well, am I supposed to add 'contacts' or something into (accessToken, refreshToken, profile, done)?? It's not showing up inside profile??