Web Developer
This is the response we get while logging in with google oauth2 client but It doesn't have the option for Google account profile photo
Votes
3
Replies
6
Participants
6
Messages
7
Web Developer
This is the response we get while logging in with google oauth2 client but It doesn't have the option for Google account profile photo
Rank 2: Process
So is there anyway we can get it through appwrite
bumping, hello @Rohit Gupta did you got info on how to get google profile avatar?
Hi, im having this problem, the session when i use account.get() just show this data but doesnt show the profilePicture: {
"$id": "...",
"$createdAt": "2025-03-24T20:30:04.266+00:00",
"$updatedAt": "2025-03-24T20:40:10.018+00:00",
"name": "Andres David Camargo",
"registration": "2025-03-24T20:30:04.263+00:00",
"status": true,
"labels": [],
"passwordUpdate": "",
"email": "andretitauro@gmail.com",
"phone": "",
"emailVerification": true,
"phoneVerification": false,
"mfa": false,
"prefs": {},
"targets": [
{
"$id": "...",
"$createdAt": "2025-03-24T20:30:04.367+00:00",
"$updatedAt": "2025-03-24T20:30:04.367+00:00",
"name": "",
"userId": "...",
"providerId": null,
"providerType": "email",
"identifier": "andretitauro@gmail.com",
"expired": false
}
],
"accessedAt": "2025-03-24T20:30:04.263+00:00"
}
appwrite doesnt provide profilepicture from google oauth out of the box. You need to extract user's access provider token from appwrite and hit this google api seperately for the avatar
https://www.googleapis.com/oauth2/v3/userinfo?access_token=${}
@Rohit Gupta did you try this method?