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
- Functions not executing after usage rese...
Hi team, Last month my project hit 100% usage and functions stopped working (expected). Now the new month has started and usage has reset, requests are going ...
- Relations within the same table
Hello, I'm currently building a sort of dictionary (a literal one) and thus I need words (which is one single table of words in my database) to be able to have ...
- Functions never end and always fail (sta...
Hi ! I'm using Appwrite Cloud Pro and function execution from appwrite website is KO. Deploying starter function template, execution is always Failed and the ...