Skip to main content
This guide explains how to register a Twitch application and configure ngrok to use Twitch OAuth for user authentication. The steps follow Twitch’s OAuth 2.0 documentation.

What you’ll need

  • A Twitch account with two-factor authentication (2FA) enabled (required to register an application).
  • Your ngrok authtoken and an endpoint with the OAuth action in its Traffic Policy.

Create credentials for ngrok

Follow Twitch’s documentation for registering an app in the Twitch developer console, then set the following:
  • OAuth Redirect URLs: https://idp.ngrok.com/oauth2/callback
  • Category: select a category, for example Website Integration.
After registering, generate a client secret and note the Client ID and Client Secret for use in your Traffic Policy below.
Required: You must enable two-factor authentication (2FA) on your Twitch account before you can register an application.

Update your ngrok endpoint Traffic Policy

  1. Access the ngrok Dashboard Endpoints page and locate an existing endpoint you’d like to add this to or create a new one.
  2. In your traffic policy, add the following configuration:
You may add any scopes that are required by your application with the following caveats.
Click Save to validate and update your traffic policy.

Configure access control

Optionally, configure access control to your service by only allowing specific users or domains.

Further resources