Skip to content
Back

How can I get the Google Avatar of the user that signed in with Google?

  • 0
  • 2
  • Self Hosted
  • Cloud
imba sphere
29 Oct, 2025, 09:42

How can I get the Google Avatar of the user that signed in with Google?

TL;DR
To get the Google Avatar of the user who signed in, you need to use the listIdentities() method with the access token. Log the result to check where it is. For setting up Appwrite on a VPS, refer to https://book.appread.io/. Match the current Appwrite version for better performance. It's possible to use Nginx with Appwrite, but if you need further help, create a new support thread.
Axistro
29 Oct, 2025, 09:45

Use the provider access token to fetch user detsils from google.

imba sphere
29 Oct, 2025, 09:48

I use React Native Expo and selfhost, the providerAccessToken in mine is empty. const currentSession = await account.getSession('current'); console.log('Full session:', JSON.stringify(currentSession, null, 2));

"$id": "***********", "$createdAt": "2025-10-29T09:25:44.248+00:00", "$updatedAt": "2025-10-29T09:25:44.248+00:00", "userId": "*******************", "expire": "2026-10-29T09:25:44.245+00:00", "provider": "oauth2", "providerUid": "", "providerAccessToken": "", "providerAccessTokenExpiry": "", "providerRefreshToken": "", "ip": "********", "osCode": "AND", "osName": "Android", "osVersion": "", "clientType": "library", "clientCode": "", "clientName": "OkHttp", "clientVersion": "4.12", "clientEngine": "", "clientEngineVersion": "", "deviceName": "", "deviceBrand": "", "deviceModel": "", "countryCode": "--", "countryName": "Unknown", "current": true, "factors": [ "email" ], "secret": "", "mfaUpdatedAt": "" }

Axistro
29 Oct, 2025, 09:58

This is a bug Use the list Identities method then you can find the identity with google oauth.

29 Oct, 2025, 10:01

It finally works, thanks

3 Feb, 2026, 18:46

could u explain me how it worked?

3 Feb, 2026, 18:49

Use the listIdentities() method. It should have the accesstoken. Log the result to check where it is.

3 Feb, 2026, 18:54

hey bro! could u help me setup my appwrite on my vps? I'm facing a lot of issues.

3 Feb, 2026, 18:55

I dont self host but you can look into this https://book.appread.io/

3 Feb, 2026, 18:58

Btw I would say to match current appwrite version. Instead of old ones in the website.

3 Feb, 2026, 19:00

is it possible to use nginx with appwrite?

3 Feb, 2026, 19:09

I dont know Create a new support thread.

1
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more