• Image
  • Image
  • Current Version: 1.0: 2022-08-04T12:35:15Z
  • First Published: 2022-08-04T12:35:15Z
  • Size: 1218992
  • Supported Unity Versions: 2020.3.33
tools integration

Login With Twitch - Authentication made easy

No rating !(0 Vote)
$10.97 $10.97

If you want to integrate your game with twitch, for example to use our Twitch PubSub & Chat Integration, this asset can help you to create an easy login function for your players so you do not need to send them to cryptically looking token generation sites.


Logging in with a twitch account into your game works just as with any website:

  1. Click the login button
  2. A browser window will be opebend
  3. Logging in to twitch (if not already logged in)
  4. Granting authorization by confirming the security question from twitch
  5. Browser can be closed
  6. Game is logged in

To achieve this, our asset supports three login methods:

A) Implicit Grant Flow

B) Authorization Code Flow (Local)

C) Server-Assisted Authorization Code Flow (recommended solution)

Please review the technical details regarding advantages and disadvantages of each method!


When letting the user log in, you can decide to force a re-authentication, which is useful for swichting accounts (Bot Account). Further you can eighter manually specify any required scopes by name, or you can pick one (or more) from our predefined scope sets for common things like chatbots.


Utilizing login methods B or C, this asset can maintain a valid token by refreshing it automatically when its expiring or when the game is restarted.

All Methods allow you to get basic information about who logged in (login name, userID) without manually talking to twitch's APIs. You can however use the token reeturned from our asset to request any information using a UnityWebRequest against twitch's API of course! 


This asset, can be used in multiple instances, so you could for example login a streamer and his bot account in parallel. This requires some minor additional precautions (different game objects, port numbers, ...).


This asset does not support web platforms (WebGL)


Add to cart
This site contains affiliate links, which means that we can receive a commission if you click on a link and buy something that we have recommended.
Although clicking on these links will not cost you anything, they will help us finance our development projects while recommending good products!