
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
- Sharing cookies
Hi, I’m using Appwrite Cloud, and I have a setup where my Appwrite backend is hosted on a subdomain (e.g., api.example.com), while my frontend (Next.js app) and...
- Custom Domain Issue
i have added a custom domain about 21 hours ago, but till now there is no SSL certificate is active on it. but if i do DNS check via https://dnschecker.org/#C...
- Flutter OAuth2 Google does not return to...
When the flow starts, the browser opens, I select an account, and it keeps showing: """ Page not found The page you're looking for doesn't exist. `general_rout...
