1.. _twitch_oauth:
2
3Twitch OAuth authentication
4===========================
5
6
7.. raw:: html
8
9    <!-- Some themes include jquery after our code... -->
10    <script type="text/javascript" src="_static/jquery.js"></script>
11    <script type="text/javascript">
12        $(function() {
13            var el = $(".highlight");
14            var params = (window.location.hash.substr(1)).split("&");
15
16            for (i = 0; i < params.length; i++) {
17                var keyval = params[i].split("=");
18
19                if (keyval[0] == "access_token")
20                {
21                    el.html('<pre>twitch-oauth-token<span class="o">=</span>' + keyval[1] + '</pre>');
22                }
23            }
24        });
25    </script>
26
27
28You successfully authenticated Livestreamer with Twitch.
29
30Paste this into your :ref:`configuration file <cli-livestreamerrc>`:
31
32.. code-block:: bash
33
34    twitch-oauth-token=
35
36