-
-
Notifications
You must be signed in to change notification settings - Fork 0
/
twitchAuth.html
56 lines (50 loc) · 1.81 KB
/
twitchAuth.html
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
28
29
30
31
32
33
34
35
36
37
38
39
40
41
42
43
44
45
46
47
48
49
50
51
52
53
54
55
56
<!DOCTYPE html>
<html>
<head>
<meta name="transparent" content="true">
<link rel="stylesheet" href="../_UI/Default/_Shared/css/globalVariables.css">
<link rel="stylesheet" href="../_UI/Default/_Shared/css/uicomponents.css">
<link rel="stylesheet" href="../_UI/Default/_Shared/css/settings.css">
<link rel="stylesheet" href="../_UI/Default/_Shared/css/materialFont.css">
<link rel="stylesheet" href="../_UI/Default/_Shared/css/xsoverlayFont.css">
<link rel="stylesheet" href="../_UI/Default/_Shared/css/socialIconFont.css">
<link rel="stylesheet" href="../_UI/Default/_Shared/css/bootstrap-icons.css">
<script type="module" src="../_UI/Default/_Shared/js/common.js"></script>
<script type="module" src="../_UI/Default/_Shared/js/uiComponents.js"></script>
<script type="module" src="./twitchAuth.js"></script>
<style>
* {
background-color: #121529;
color: gainsboro;
}
.client {
opacity: unset;
position: unset;
left: unset;
border-radius: 6px;
border-width: 4px;
visibility: visible;
border-color: mediumpurple;
}
.inline {
display: inline;
}
</style>
</head>
<body onload="Initialize('twitch');">
<div>
<h3>Authenticate with Twitch</h3>
<div>
<p class="inline">Client ID:</p>
<input type="text" class="client" id="clientId">
</div>
<div>
<p class="inline">Client Secret:</p>
<input type="text" class="client" id="clientSecret">
</div>
<button onclick="AuthorizeTwitch()">Authorize</button>
<h2>Make sure your app's redirect uri is set to this page's URL!</h2>
<br><code id="warn"></code>
</div>
</body>
</html>