Hey, how should I work with the two SDK
I'm using Nextjs so al the authentication process is made with the node-sdk but there are some queries to the database I need to do with the client SDK
Currently I'm doing:
const sessionClient = () => {
const session = getCookie(SESSION_COOKIE_TOKEN);
return new Client()
.setEndpoint(Server.endpoint || "")
.setProject(Server.project || "")
.setSession(session || "");
}
const client = sessionClient();
const databases = new Databases(client)
However when I do a request I got an error 401
When I see the the request headers I see the session token (see the image), what I'm doing wrong?
Recommended threads
- TablesDB `updateRows` returns `database_...
Hi Appwrite team! I’m seeing a strange issue with TablesDB bulk row updates on a self-hosted Appwrite instance. **Environment** - Appwrite self-hosted `1.9.0` ...
- [SOLVED] Realtime Missing Channels
```js useEffect(() => { let subscription: RealtimeSubscription; async function loadChips() { try { const {rows: chi...
- Functions executed by events does not ap...
Hello, Running self-hosted Appwrite version 1.9.0 (with console 7.8.26). When functions are triggered by an event (eg. databases.\*tables.\*.rows.\*.create) doe...