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
- User column is processing
I am still encountering the processing tag after creating a column in my database. and its not a network or refresh issue, i have refreshed over and over, shutd...
- Custom API domain is unreachable
Earlier my custom api domain was working fine. Now it seems to be offline without a trace a few hours later. I didn't change anything, all the relevant DNS reco...
- "Invalid console fingerprint" when unpau...
I've tried logging out and logging back in, still can't figure out why this is happening.