Hello!
I've been playing around with the server SDK and did a simple demo, but when I disabled the client services from the Appwrite dashboard, I could no longer get the current user. Given that my demo uses the server SDK, I was a bit confused.
How is someone expected to get the currently logged-in user with the server SDK? It seems like I can create a session, but not retrieve one.
Checking the docs, it's even more confusing: https://appwrite.io/docs/references/cloud/server-nodejs/account
In the Node.js example, the session is being set, but in the REST API, the header includes a JWT.
What am I missing here?
For reference, here's my code: https://github.com/Babylon1999/nextjs-appwrite-boilerplate/blob/main/utils/server/appwrite.ts
Note: I'm new to Node.js/Next.js, so any suggestions are appreciated.
Recommended threads
- Project is currently blocked
When accessing the Appwrite console, I receive the message: "Project is currently blocked. Access to this project is restricted. Contact support if the issue pe...
- {"code": 1008, "message": "Invalid Origi...
Nothing has changed in my application or console settings so I'm curious as to what I need to do to fix this. I already have the client registered so I'm not en...
- ClientException with SocketException: Cl...
hi <@564158268319203348> i have noticed this 500 status code in my function requests, it seems its not able to connect to the internet in the function as reque...