Hi, please i have maybe weird question. When i am using locale.get() it returns me my IP when i am on localhost. But when it is in production it returns IP of server that hosts it (vercel). I thought that it uses JWT to get IP of user, but it only returns IP of server that is requesting, is it right? Or am i doing something wrong? I know, i can call it on client-side, but i am using sveltekit(SSR). BTW i call locale.get() on server-side with JWT.
Locale.get will give you the user IP only from the client side SDK
JWT will authenticate on behalf of the user but it will still execute from the server therefore you'll get the server IP
Thank you very much
[SOLVED] locale API
Recommended threads
- Scheduled functions (CRON) not firing — ...
Hi team — same symptom as a recent thread here where switching from a round cron expression to an offset-minute one fixed it. Project ID: 69fa56560037c7843a85 ...
- Functions in cloud console not works
please advise as all of my runing functions on Appwrite console was working before , but now it give this error [Invalid `headers` param: Value must be a valid...
- Cannot migrate from Supabase
Hi, I was trying to migrate from Supabase to the Appwrite database. My database had around 190K columns. I tried it twice. Both times, after 2 days, the proce...