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
- Project in AppWrite Cloud doesn't allow ...
I have a collection where the data can't be opened. When I check the functions, there are three instances of a function still running that can't be deleted. The...
- Get team fail in appwrite function
I try to get team of a user inside appwrite function, but i get this error: `AppwriteException: User (role: guests) missing scope (teams.read)` If i try on cl...
- Deploy function not working - 503
Hellon i get this error message, when i try to deploy a new version of a function <html><body><h1>503 Service Unavailable</h1>No server is available to handle...