i want to get a specific users preferences from serverside maybe i missunderstood something
the docs dont show it
I think it's that?
but how do i know what user its from?
I think inside account.getPrefs() you can put the user object.
It should be in the docs 🤔
If by server-side you mean using a Server Side SDK with API Key?
yes, im eating rn ill check if its possible and let you guys know
nope it doesnt have anything that inputs userid
weird
On Client Side, account.getPrefs()
should be called after the user is successfully logged in which doesn't require passing any userID.
this is serverside though
However, on the Server Side SDKs you do -
const user = await users.get('[USER_ID]');
const prefs = user.getPrefs()
oh i see lemme check
[Solved] how to get user prefs from serverside
Recommended threads
- Can send phone authentication requests f...
I am running phone authentication on my website and when I try to Send OTP it is going fine when I do it on any browser on PC but when I do it on phone it's giv...
- Docker appwrite not working with domain ...
docker ps -a attached [root@vps1 appwrite]# docker logs appwrite-traefik time="2024-09-16T15:53:21Z" level=info msg="Configuration loaded from flags."
- Can't access files in bucket
Unable to access the files in the bucket even if the proper permissions are set for the user. Only when I set the permissions open for 'Any', the web app can ac...