
Hey, I have a nextjs website with SSR auth, works great. I use a session client for user verification and an admin client with API key. Both is used with node-appwrite.
However, when I want to get a realtime subscription, it's not supported by node-appwrite package.
Is it possible to create a JWT and use that to init a client session with appwrite, and then subscribe to that? I guess that would mean the same session will be used simultaniously in both node-appwrite and appwrite. Ive allready tried but no updates when changing rows.
Or.. would it be a better setup to remove session client from SSR and only keep admin session SSR?
I am hoping on some pointers on what will be the common way to solve this matter.
Thanks!
Recommended threads
- Creating a relationship with nested obje...
{ "data": { "name": "DiDi", "type": "Software Development", "userJobs": [{ "$id": "68cbf1e2003612fb13ca", "j...
- Adding "name" column to table creates 2-...
As stated, im adding the "name" column to one table, it adds 4 duplicates. In another table it adds 3 duplicates, and when I delete 1 of them, all duplucates di...
- Server Error when Pushing a Function
Get this ambiguous error when trying to push my function, it's TypeScript using NodeJS 18 ``` ? Which functions would you like to push? get-grades (get-grades)...
