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