Incorrect user authorization

Normally your oAuth flow will reside on a website

So the link to start the auth process is housed in an <a href="">Login with Twitch</a>

This is an example that implements implicit auth, which generates a token that is non refreshable, so generally not the token you need but will illistrate the flow

https://barrycarlyon.github.io/twitch_misc/authentication/implicit_auth/

The TwitchCLI will do this with the -u flag as well

It’ll open the web browser from the command line to do the auth with

The guide: