organization · inferred from evidence
GetStream
The organization maintaining the StreamChat library and related services.
- stream-chat: tokens can only be created server-side using the API Secret (Next.js API route)
In a Next.js API route (server-side code), calling `client.createToken(userId)` on a client from `StreamChat.getInstance(process.env.STREAM_KEY, process.env.STREAM_SECRET)` throws `Error: tokens can only be created server-side using the API