Back

[SOLVED] get user details

  • 1
  • Users
  • Accounts
  • Web
Ari
27 Oct, 2023, 05:59

fairly new to appwrite, I have users logged through social auth, I want to display their name and email, in the profile page after they login.. need help please.

TL;DR
User wants to display the username of users who log in with social login on their app. Solution: Use the `account.get()` function to get the user's info and validate their login. Check the Appwrite documentation for more details.
Haimantika
27 Oct, 2023, 08:22
Haimantika
27 Oct, 2023, 08:24

Also, you can use our AI assistant, really handy! πŸ‘€

For e.g I used it and it showed me the sample code πŸ™‚

Ari
27 Oct, 2023, 13:41

Okay, Thank you, I'll try it and revert back in case of any doubts.. πŸ™

Haimantika
30 Oct, 2023, 07:51

Were you able to solve it?

Ari
12 Nov, 2023, 19:35

Hi, I apologize for the late reply! I was trying to figure it out... The thing is I am, logging in users with social login(google) and I jusrt to get theri username to display...

Ari
12 Nov, 2023, 19:37

I am using appwrite web

Drake
12 Nov, 2023, 22:19

Assuming the session is working correctly, you can use account.get() to get info about the user (and validate they are logged in)

Ari
17 Nov, 2023, 05:37

Thank you, I got it, It's working.

Haimantika
17 Nov, 2023, 13:28

[SOLVED] get user details

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