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 trying to retrieve user information on server-side to validate requests. One suggestion is passing the cookie header from the request object to account.get in a node-appwrite project.
SahilG
10 Oct, 2025, 09:54

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

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