Skip to content
Back

Cant get user email

  • 1
  • React Native
  • Cloud
Rugile
31 Dec, 2024, 20:18

i was able to make google login session, but i notice that there is no user email, why? {"$createdAt": "2024-12-31T19:56:32.753+00:00", "$id": "67744c70a799168b823e", "$updatedAt": "2024-12-31T19:56:32.753+00:00", "clientCode": "", "clientEngine": "", "clientEngineVersion": "", "clientName": "OkHttp", "clientType": "library", "clientVersion": "4.9", "countryCode": "edited", "countryName": "edited", "current": true, "deviceBrand": "", "deviceModel": "", "deviceName": "", "expire": "2025-12-31T19:56:32.951+00:00", "factors": ["email"], "ip": "edited", "mfaUpdatedAt": "", "osCode": "AND", "osName": "Android", "osVersion": "", "provider": "oauth2", "providerAccessToken": "", "providerAccessTokenExpiry": "", "providerRefreshToken": "", "providerUid": "", "secret": "", "userId": "677310d07ab5cfa639be"}

TL;DR
Developers are having trouble retrieving the user's email after implementing Google login. The issue is due to fetching the user account instead of the session. To solve this, developers need to ensure they are correctly accessing the user's email information within the session data.
Steven
31 Dec, 2024, 20:47

Get the user account instead of the session

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