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
- No server error on selfhosted appwrite
Please help me, my clients is ask what happen on their data? How can i make it up again?
- Upgrading selfhost version?
It is okay to upgrade version to higher one, of my current version is 1.7.4 to 1.8.1. Is that safe to do cause my clients already have data on that? Also is a...
- Local Serverless Function Testing: Are D...
I have followed the instructions to get the CLI working, and have been able to log-in, initialize my project, and created a simple Python function, which calls ...