Error/warn on invalid secret
Closed this issue · 1 comments
serycodes commented
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