Stream Chat icon

Stream Chat

Server-side Stream Chat operations

User → Generate Token

AI-generated

Summary

Generate a user authentication token using the specified unique User ID, enabling the user to interact securely with the Stream Chat service.

Inputs

  • User ID (required) — A unique identifier string for the user, such as "john_doe" or "user123".

Output shape

A JSON object containing a generated token string for the user.

The output JSON includes a 'token' field with the authentication token. This token is used for authenticating the user in Stream Chat operations.

Discussion