twitchdev/twitch-cli

Error/warn on invalid secret

Closed this issue · 1 comments

According to https://dev.twitch.tv/docs/eventsub#secret, an eventsub secret should be between 10-100 characters.

It would be nice/helpful if the Twitch CLI provided an error if the provided secret is invalid (outside of this range).

Example, I'd expect the following to provide an error rather than a successful JSON mock:

twitch event trigger hype-train-progress --secret '2short' -F https://endpoint
twitch event trigger hype-train-progress --secret 'thisisareallylongsecretthisisareallylongsecretthisisareallylongsecretthisisareallylongsecretthisisareallylongsecret' -F https://endpoint

This has been resolved with PR #115 ; will include in an upcoming release.