Back

How Do I Generate Stream Chat Tokens with Appwrite?

  • 0
  • Databases
  • Android
  • Messaging
  • Realtime
  • Functions
Shiny
25 Jul, 2024, 14:01

I am trying to create a chat system in my app using stream chat. I have a basic chatroom made, but now I am stuck on how to generate tokens for users. Following the stream-chat documentation (https://getstream.io/chat/docs/react/tokens_and_authentication/), it seems that I have to add some code to my backend service (appwrite), but I am not sure how or what code I should even provide. I believe creating a function is the way to do it, but I am not sure how to properly set that up as well.

For further context, I am following this video tutorial to set up the messaging/chat system within my app: https://www.youtube.com/live/UxSdy3oOnIw?si=89YvS30ZILtlU4lF

Any help is greatly appreciated!

TL;DR
Developers are struggling to generate stream chat tokens using Appwrite for their chat system. They are unsure about the necessary backend code and how to set up the function. Solution: Check the Stream-chat documentation and implement the backend function accordingly.
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