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
- HUGE OUTRAGE IN APPWRITE, I CANNOT ACCES...
I have 2k users trying to access, sending me messages. What am I supposed to do? Please solve this asap.
- All my apps are not opening now
All my apps are not opening now 200+ apps are not opening plz fast
- Failed to generate functions SSL
```appwrite-worker-certificates | Cannot renew domain (functions.domain.com) on attempt no. 9 certificate: Failed to verify domain DNS records. appwrite-worker...