[SOLVED]: Disabling services for client SDK's also disables the services for `node-appwrite`
- 0
- Self Hosted
- Auth
- Cloud
Hey, is this behaviour correct? when disabling services for client SDK's it also disables the services for node-appwrite
?
in the settings description says this:
Choose services you wish to enable or disable for the client API. When disabled, the services are not accessible to client SDKs but remain accessible to server SDKs.
thanks in advance
When disabling services for client SDK's it also disables the services for node-appwrite?
- Nope, services stay accessible to server sdks.
node-appwrite
is a server side sdk.
so it's disabling it.. let me check the error
ACCOUNT ERROR: The requested service is disabled. You can enable the service from the Appwrite console.
Did you do .setKey
on the Client
?
yes,
but then I use the session like so
so it respects the permissions and not act like super admin
afaik, session falls on the client side.
it should work if you only use setKey
.
can you check if it works with only Key.
ok I get it now. It disables the session
with appwrite
web sdk
yes the key works as I can loggin and set the cookie but the server kicks me out coz the middleware is using the session
Use appwrite
for client side.
from the description I understood that it disables access thru the web sdk but the keeps the server side even with session.
can't do that. project requirements states the backend should be not accessible from the web
but that's fine, the workaround is just enable them for now as the url is never visible to the client
Thanks for the clarification π
no worries.
Pl. mark the title as [SOLVED] if the issue is resolved.
Happy Appwriting :appwritecheers:.
[SOLVED]: Disabling services for client SDK's also disables the services for node-appwrite
Recommended threads
- 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...
- Deep Linking & Password reset
I am using react native with expo. I want to implement deep link with the url recived via email. So when clicked the link it opens my app. I havent ever used de...
- 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...