Twitch Social Login with Web3Auth
Twitch Login is a social login provider that allows users to sign in using their Twitch credentials. Web3Auth supports Twitch as a social login provider, allowing developers to offer a familiar and quick authentication method for users with Twitch accounts.
To integrate Twitch with Web3Auth, developers must first create a Twitch App via the Twitch Developer Portal.
Create a Twitch app
-
Follow Twitch's registration instructions to (register your app)[https://dev.twitch.tv/console/apps/create].
-
Paste the following as a Redirect URI into the "OAuth Redirect URLs" field.
-
After creation of your Twitch app, click Manage
-
Obtain the Client ID
Create a Twitch Connection
To use this feature, please enable Twitch
from the Social Connections section in the
Web3Auth Dashboard.
By default, Web3Auth uses its own pre-configured credentials for Twitch login.

Follow these steps to create a Twitch connection:
- Visit the Web3Auth Dashboard.
- Go to the
Social Connections
section. - Click on the
Settings
icon near the Twitch connection. - Enter the
Auth Connection ID
. - Enter the
Twitch Client ID
. - Finally, click on the
Add Connection
button.

Usage
Since, the Twitch Connection
details are available from Dashboard, developers don't need to pass
any additional parameters to the Web3AuthProvider
.
Follow our Quickstart Guide to setup the basic flow.
Login with Twitch
await connectTo(WALLET_CONNECTORS.AUTH, {
authConnection: AUTH_CONNECTION.TWITCH,
authConnectionId: "w3a-twitch-demo",
});