abacritt / angularx-social-login

Social login and authentication module for Angular 17
636 stars 387 forks source link

Google does not return photoUrl #781

Open manhbui21 opened 3 months ago

manhbui21 commented 3 months ago

Hey there, I am trying to get token from google and it seems I'm missing the photoUrl. Any suggestions?

I'm using version 2.2.0 with Angular 17 and this is what I get from them.

email: "classified", // I'm using Gsuite mail from my organization firstName: "classified", id: "classified", idToken: "classified", lastName: "classified", name: "classified", photoUrl: undefined, // I'm missing this one provider: "GOOGLE"

Thanks for help!

maxnag commented 3 months ago

Can't confirm! I got the latest version and I can see the photo.

manhbui21 commented 3 months ago

@maxnag I have just tried again and still not getting the photo in the response. image Could you please tell me if there is any related configuration or information that I should take a look for?

maxnag commented 3 months ago

please provide the configuration of your service provider for Google.

manhbui21 commented 3 months ago

@maxnag could you tell me the name or give a screenshot of the configuration in Google cloud project? I'm new for GCP that I don't know what configuration I should provide

maxnag commented 3 months ago

@manhbui21 Here is mine configuration for Angular 17.3 image

Here from the Google console

image

The result:

image

manhbui21 commented 2 months ago

@maxnag Here is my configuration for Angular 17.3.3 (I just added "scopes" as yours) image From Google console image The result doesn't change

maxnag commented 2 months ago

@manhbui21 I did what I can, sorry

manhbui21 commented 2 months ago

@maxnag thank you for helping me anw.