Hi, can i use account.get if i want to check if a user exists ? in a function
No, account.get() gets the currently logged in user.
You would want to use users.get(USER_ID)
https://appwrite.io/docs/references/cloud/server-nodejs/users#get
thank you so much, ill try it :)
and can i somehow search by email?
sure, try
const res = users.list([
Query.equal('email', 'USER_EMAIL')
]);
const user = res.users[0]
Recommended threads
- Any way to temporarily bypass the email ...
Hey guys, any way to bypass the email verification to use the accounts again? i need to recover some projects that due to recent changes have been stopped, and ...
- Create a new paid tier
Current pricing seems reasonable enough about what is someone getting for 25$. But for some people most of these resouces are getting wasted. Like the bandwidt...
- [Bug] Appwrite Auth User Prefs
User prefs are decoded as blank although there are plenty of data and add preference button not working in this case