Skip to content
Back

account.get on api route

  • 0
  • Auth
  • Cloud
SahilG
10 Oct, 2025, 09:43

How can i get the user info on api routes? on cliennt side we can call account.get() which maybe reads cookies though doucment object.

But i want to get to get user info on server side to validate the request is coming from authenticated route

TL;DR
Developers are having trouble using the Account instance to access account API endpoints. The solution is to utilize the Users service instead and refer to the server-side endpoints provided by Appwrite.
SahilG
10 Oct, 2025, 09:54

one approach could be we can pass cookie header from req object to accoun.get of node-appwrite

Chirag Aggarwal
10 Oct, 2025, 12:30
SahilG
10 Oct, 2025, 14:21

i dont know why but my server Account instance isnt able to to use account apis endpoints

even though i have provided all the scopes to my appwrite key

Chirag Aggarwal
10 Oct, 2025, 15:00

use the Users service

Chirag Aggarwal
10 Oct, 2025, 15:00

not account

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