Authorization Code Flow
Generate authorization URLs, exchange authorization codes, and refresh user tokens with safeguards for production apps.
Explore working TypeScript examples that show how to connect to Twitch with velho. Every guide walks through setup, required credentials, and ideas for extending the pattern in your own integrations.
Generate authorization URLs, exchange authorization codes, and refresh user tokens with safeguards for production apps.
Combine Twitch chat commands with Helix lookups to answer uptime and title requests while handling reconnects and errors gracefully.
Accept EventSub webhooks, verify signatures, and stream notifications from Twitch with a lightweight HTTP server.
Connect to Twitch's EventSub WebSocket gateway, handle keepalives, and observe subscription lifecycle events in real time.
Authenticate with client credentials and call the Helix Streams endpoint with typed responses and helpful error handling tips.
Use the velho CLI helper to refresh OAuth tokens and connect a resilient chat bot that responds to custom commands.