View Source mix twitch.auth (hello_twitch_api v0.4.9)
A task for getting an OAuth access token from Twitch, using the authorization code flow.
Usage
mix twitch.auth [OPTION]
Options
--output
- Specify how we want to output the token. Valid values are:json
,.env
,.envrc
,stdio
,clipboard
. NOTE: Onlyjson
is supported currently.
ENV Vars
TWITCH_CLIENT_ID
- The Twitch client ID for your app.TWITCH_CLIENT_SECRET
- The Twitch client secret for your app.TWITCH_AUTH_SCOPE
- The Twitch scopes as a space-separated string.TWITCH_AUTH_PORT
- The port that the temp web server will listen on. Defaults to42069
.