A simple Express.js server to generate Stream chat tokens securely.
-
Create
.envfrom the example:cp .env.example .env -
Install dependencies:
npm install -
Start the server:
npm start
POST /get-stream-token
Headers:
Authorization: Bearer my_super_secret_keyContent-Type: application/json
Body:
{ "uid": "your-user-id" }