Skip to content

Updating visuals

If you see any images containing outdated UI, please bear with us.

We are updating all content as quickly as possible to mirror our new UI.

Twitch authentication ​

Twitch authentication lets your users sign in with their Twitch account.

Setup in the Twitch dashboard ​

  1. Go to the Twitch Developer Console.
  2. Create an app (or open an existing one).
  3. Add a redirect URL (the URL Twitch sends users back to after login).
    • Use the WeWeb callback URL: the address of your app followed by /api/auth/callback/twitch. The table below lists the URLs to add.
  4. Copy your credentials (for example Client ID and Client Secret).

Add one callback URL for each place where users sign in:

Where users sign inCallback URL to add in Twitch
Editorhttps://<your-project>-editor.weweb.io/api/auth/callback/twitch
Staging apphttps://<your-project>-staging.weweb.io/api/auth/callback/twitch
Published apphttps://<your-project>-production.weweb.io/api/auth/callback/twitch
Custom domainhttps://your-domain.com/api/auth/callback/twitch

Replace <your-project> with your project's WeWeb subdomain. You can see it in your browser's address bar when the editor is open, for example bright-harbor in https://bright-harbor-editor.weweb.io.

CALLBACK URL VS SUCCESS PAGE

Twitch always sends users back to the callback URL, never to a page of your app. WeWeb then completes sign in and takes users to the Success Page, Error Page, or New User Page you choose in the Sign in with social provider action. Do not add the URL of these pages in Twitch.

Connect Twitch in WeWeb ​

  1. In the WeWeb editor, open the Data & API tab, then open the Authentication subtab and go to SSO Providers.
  2. Select Twitch and turn on the Enable toggle.
  3. Paste your credentials into the fields shown in WeWeb.
  4. Click Save.

Test sign in ​

  1. Add a “Continue with Twitch” button in Interface.
  2. Create a workflow on click and add Sign in with social provider.
  3. Set:
    • Provider: twitch
    • Success Page, Error Page, and (optional) New User Page
  4. Preview and complete the sign-in flow.

Common pitfalls ​

Redirect URL mismatch ​

Make sure the redirect URL in Twitch exactly matches the WeWeb callback URL ending with /api/auth/callback/twitch (no trailing slash), not the Success Page URL you selected in WeWeb.

Reference ​

Setting in WeWebDescriptionWhere to find it in Twitch
Client IDIdentifies your Twitch app.Twitch Developer Console app settings.
Client SecretUsed to complete the sign-in flow securely.Twitch Developer Console app settings.

FAQs ​

Which redirect URL should I add in Twitch?

Add the address of your app followed by /api/auth/callback/twitch, for example https://your-domain.com/api/auth/callback/twitch. Add one for each place where users sign in (editor, staging app, published app, custom domain). The URL of your Success Page is not the redirect URL.