Web Developer
I'm using Astro, with node-appwrite and httpOnly cookies for auth. This handles authentication for certain pages, and now I need a realtime connection to the db, under the user that's logged in - how should I go about doing this?
I presume I'd need a client-side appwrite client, but how would I make one without sending the session cookie from the server? (unless I'm thinking of that the wrong way..) - also, does this mean I'd need to use both the node-appwrite and appwrite packages separately?
Everything is local at the moment - selfhosted appwrite and a local astro page.
This is probably a simple solution, but I haven't found anything besides a couple of vague or empty threads.