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
- Get Profile picture
If I made an app where user need to sign in with Google. Now how do I access the user profile picture?
- Intermittent 60s edge-to-origin stalls r...
Anyone having this problem? Region: SFO. Plan: Pro. UPDATE: "Fastly's documentation notes that enabling origin shielding can resolve backend connection problem...
- Functions Failing on CRON Schedule
I set up an hourly CRON Schedule for my function and It only executes successfully every after 3 hours sometimes 10 hours. When I execute it manually it works e...