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
- Rate limit
How do I solve "Signup Failed, Rate limit for the current endpoint has been exceeded. Please try again after some time"? I have Pro and around 2k requests per ...
- Type 'Theme' does not satisfy the constr...
Type 'Theme' does not satisfy the constraint 'Row'. Type 'Theme' is missing the following properties from type 'Row': $id, $sequence, $tableId, $databaseId, a...
- Dev Keys not working
looks like dev key are broken they simply don't work i suggest remove them until you have them working otherwise they confuse devs took me few minutes trying ...