Skip to content

Commit

Permalink
add FAQ question
Browse files Browse the repository at this point in the history
  • Loading branch information
d-fischer committed Feb 18, 2022
1 parent 1dc09a0 commit 86b2d27
Show file tree
Hide file tree
Showing 2 changed files with 17 additions and 1 deletion.
13 changes: 13 additions & 0 deletions docs/faq/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -91,3 +91,16 @@ This can have different reasons:
and that you're passing the full certificate chain.
A good way to test your SSL setup is [the Qualys SSL Labs test](https://www.ssllabs.com/ssltest).
It will make sure you find all trust and chain issues.

## EventSub: What does the error message `subscription missing proper authorization` mean?

EventSub uses app tokens to create subscriptions. App tokens can't have any scopes.
However, that doesn't mean that authorization isn't necessary at all.
Twitch will check with its internal systems whether the user ever authorized the necessary scope for the topic
and give you the mentioned error message when it fails to find this authorization.

To get this authorization, simply [go through OAuth](https://dev.twitch.tv/docs/authentication/getting-tokens-oauth/)
(except the Client Credentials flow) with your client ID and the
[necessary scopes](https://dev.twitch.tv/docs/eventsub/eventsub-subscription-types) that are documented
for your desired subscription topics. You can throw away the token you get from this.
The authorization will still get saved on Twitch - now you can subscribe to your topics.
5 changes: 4 additions & 1 deletion docs/getting-data/eventsub/ngrok.md
Original file line number Diff line number Diff line change
Expand Up @@ -17,7 +17,10 @@ or using npm:

Listening to events using ngrok is easy since the ngrok adapter benefits from the ability to set itself up completely on its own:

```typescript
```ts
// This is necessary to prevent conflict errors resulting from ngrok assigning a new host name every time
await apiClient.eventSub.deleteAllSubscriptions();

const listener = new EventSubListener({
apiClient,
adapter: new NgrokAdapter(),
Expand Down

0 comments on commit 86b2d27

Please sign in to comment.