
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
- Listing all function deployments from a ...
I have a function with the following code. Its purpose is to delete old deployments and win back storage capacity (since there's no option in the Console that I...
- Fixing OAuth2 authentication issue
I am using React-Router and Vite to implement google auth , I have setup my Google CLient ID and the consent forms comes , But after I have signed up with Googl...
- Is there migration script generation lik...
Having standards migration script is helpful. For example something like same script to apply for multiple DB - each DB for one tenant
