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:
# Token
## Overview
The `token` product is used to fetch access tokens for an application
## Token Types
The Twitch CLI provides access to two types of tokens: App Access Tokens and User Access Tokens.
**App Access Tokens**
[App Access Tokens](https://dev.twitch.tv/docs/authentication/#app-access-tokens) can access APIs that don't require the user's permission. For example, getting a list of videos.
**User Access Tokens**
[User Access Tokens](https://dev.twitch.tv/docs/authentication/#user-access-tokens) provide access to APIs a user must grant permission to. For example, starting or stopping a poll. The specific APIs and functionality granted to a token is defined via [scopes](https://dev.twitch.tv/docs/authentication/scopes/).
## Client IDs and Client Secrets
This file has been truncated. show original