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
one approach could be we can pass cookie header from req object to accoun.get of node-appwrite
use the server side endpoints - https://appwrite.io/docs/references/cloud/server-nodejs/users
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
use the Users service
not account
Recommended threads
- Cloud function deploy stucks in processi...
Been trying for the last hours to deploy my function but for whatever reason, alwasy stuck on processing!
- One-time Cloud migration blocked by data...
Hi, I’m blocked on a one-time migration from Appwrite Cloud to my self-hosted Appwrite instance. We already fixed the region issue, and the migration now corre...
- All My Project is Gone
Hello everyone, please help. Why have all my projects suddenly disappeared? I received a warning via email about one of my projects being paused. When I clicked...