Skip to content
Back

Realtime integration with SSR auth

  • 0
  • Databases
  • Web
  • Realtime
  • Cloud
ehatlem
18 Sep, 2025, 12:47

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!

TL;DR
Developers seek help on integrating realtime subscriptions with SSR-authenticated Next.js website using node-appwrite. They struggle with the limitations of the current setup and wonder if creating a JWT for a client session with appwrite would work for subscriptions. They're also considering changing the setup by removing the session client from SSR and keeping only the admin session. Solutions not provided.
Reply

Reply to this thread by joining our Discord

Reply on Discord

Need support?

Join our Discord

Get community support by joining our Discord server.

Join Discord

Get premium support

Join Appwrite Pro and get email support from our team.

Learn more