jaredhanson / passport-google-openidconnect

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

Return avatar on profile and email scope #4

Open olawalejuwonm opened 2 years ago

olawalejuwonm commented 2 years ago

Hello

I'm using profile and email as scope, yet this strategy doesn't return avatar in the profile object and yet this same code works for @passport-next/passport-google-oauth2

olawalejuwonm commented 2 years ago

image

jaredhanson commented 2 years ago

Thanks for the feature request. I'd welcome a PR that added this capability to passport-openidconnect. The relevant code is here and would need to be updated to parse picture from JSON.