You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
Copy file name to clipboardExpand all lines: streamerbot/3.api/4.websocket/0.guide/4.authentication.md
+3-1Lines changed: 3 additions & 1 deletion
Display the source diff
Display the rich diff
Original file line number
Diff line number
Diff line change
@@ -36,6 +36,7 @@ const client = new StreamerbotClient({
36
36
You only need to do this if you are building your own client, or using another language.
37
37
::
38
38
39
+
::steps{level=3}
39
40
### Hello Request
40
41
When connecting to Streamer.bot's WebSocket Server, you will receive a `Hello` message, detailed below.
41
42
@@ -65,7 +66,7 @@ This message always contains an `info` object with information about the instanc
65
66
}
66
67
```
67
68
68
-
### Autenthicate Request
69
+
### Authenticate Request
69
70
70
71
Using the `salt` and `challenge` provided in the `Hello` request, you will need to generate an authentication string and send an `Authenticate` request back to Streamer.bot.
71
72
@@ -85,6 +86,7 @@ You will need to send the above request back to Streamer.bot in order to authent
85
86
3. Concatenate the `base64` secret with the challenge sent by the server `(base64_secret + challenge)`
86
87
4. Generate a binary `SHA256` hash of that result and `base64` encode it.
87
88
5. The resulting string is what you will use for authentication.
0 commit comments