View Source mix auth.token (hello_twitch_api v0.4.7)
A task for getting an OAuth access token from Twitch, using the authorization code flow.
Usage
mix auth.token --output json
Options
--output
- Specify how we want to output the token. Valid values are:json
,.env
,.envrc
,stdio
,clipboard
.
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
.