Twitch social sign in
You can enable users to sign up and sign in using their Twitch credentials. To enable this, you’ll need a Twitch account and some developer know-how.
Before you begin
Link to this sectionEnable Twitch 2FA — Sign up for a Twitch account and enable two-factor authentication (2FA). You will need your mobile number and an authenticator app e.g. Google authenticator, to do this.
Get the Kinde callback URL
Link to this section- In Kinde, go to Settings > Authentication.
- In the Social authentication section, select Add connection.
- Select Twitch and then select Save.
- On the Twitch tile, select Configure.
- In the Callback URL section:
- If you use Kinde’s domain as your default, copy the Kinde domain URL.
- If you use custom domains, select the Use custom domain instead option.
- If you have only one custom domain, copy the Custom domain URL. If you have custom domains for multiple organizations, select each one from the list and copy the callbacks for each. You need to enter all custom domain callbacks in the Twitch app.
- Use the copied Callback URLs to set up the app, see below.
Register a Twitch app
Link to this section- Go to the Twitch developer console and select Applications.
- Select Register your application.
- Enter a name and the Kinde callback URLs you copied above. Add entries for all your organization custom domain callbacks, e.g.
account.customdomainone.com/login/callback
,account.customdomaintwo.com/login/callback
, etc. - Select the Category as an Application Integration.
- Select Create.
See the Twitch docs for additional help.
Get app Client ID and Client secret
Link to this section- In the Application section in Twitch, select Manage next to your application.
- Copy the Client ID.
- Select New secret and when prompted, confirm.
- Copy and paste the Client ID and Client Secret into a text file or somewhere you can easily copy them.
Add Twitch credentials to Kinde
Link to this section- In Kinde, go to Settings > Authentication.
- On the Twitch tile, select Configure.
- Paste the Client ID and Client secret from the app into the relevant fields.
- Select if you want to treat this connection as a trusted provider. A trusted provider is one that guarantees the email they issue is verified. We recommend leaving this off for maximum security.
- Select which applications will allow Twitch SSO.
- Select Save.
Users will now see Twitch as an option to sign up and sign in to the selected applications.
When an email is not provided
Link to this sectionTwitch does not require an email for sign up, but Kinde does. So if a user signs up with Twitch and an email is not detected, we will ask for one.
The user only needs to provide their email once, then they can sign in via Twitch without disruption.
If the email they provide is already detected in Kinde, we will automatically link the accounts so as not to duplicate.