zquestz / omniauth-google-oauth2

Oauth2 strategy for Google
1.45k stars 413 forks source link

Image size is not working properly #419

Open silva96 opened 2 years ago

silva96 commented 2 years ago

When I request my user, it returns the profile picture in this format (which I believe is not the format this gem expects)

https://lh3.googleusercontent.com/a-/AOh14Girjdxgw0kygBhGCtIpIOgxHuKej3MLf5Ug6vmA=s96-c

Beign s96-c the size.

Currently I'm mannually changing my url like this,

image.gsub('s96-c', 's128-c')

But I thought it would be useful to fix the bug in the gem

Here is the official documentation: https://developers.google.com/people/image-sizing