How can I get the Google Avatar of the user that signed in with Google?
Use the provider access token to fetch user detsils from google.
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": "" }
This is a bug Use the list Identities method then you can find the identity with google oauth.
Recommended threads
- Error: Trying to install appwrite on sub...
``` [Error] Method: POST appwrite | [Error] URL: /v1/account appwrite | [Error] Type: Appwrite\Extend\Exce...
- Rate limit
How do I solve "Signup Failed, Rate limit for the current endpoint has been exceeded. Please try again after some time"? I have Pro and around 2k requests per ...
- Type 'Theme' does not satisfy the constr...
Type 'Theme' does not satisfy the constraint 'Row'. Type 'Theme' is missing the following properties from type 'Row': $id, $sequence, $tableId, $databaseId, a...