Skip to content
Back

is `account.get()` safe to be used in the client side?

  • 0
  • Tools
  • Auth
  • Web
  • Cloud
Los Feliz
17 Apr, 2026, 05:12

I want to user's id for authentication. However, a while ago I was told in this server not to use account.get() and instead add user preferences for that user which matches with an $id that is in a collection that contains details like username. ChatGPT is advising against it strongly. So, now I am not sure which id to use for authentication, the one that is created in a collection and added as a preference, or the id that is in the Auth section?

TL;DR
Developers are asking if it's safe to use `account.get()` in the client-side for authentication. Initially, they were advised against using it and instead told to add user preferences matching with an `$id` in a collection. They're now wondering whether to use the id in the collection or the one in the `Auth` section for authentication.
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