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
- Bug Report: type generation for enum of ...
### π Reproduction steps in the enum element value, instead of English, use another language (Khmer), in my case Khmer text. ``` export enum ProvinceType { ...
- Github Repos are not appearing on sites ...
Hi, Has anyone had recent issues with sites feature where github repos are not appearing? I even tried unliking and giving it a shot! It does not even show up, ...
- [Bug] Cannot set any token expiry to Nev...
Tried with file tokens and api keys