View Source mix twitch.auth (hello_twitch_api v0.4.10)

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: Only json is supported currently.

Auth Options

  • --client-id - The Twitch client ID for your app. Defaults to the value of the TWITCH_CLIENT_ID env var if not set.
  • --client-secret - The Twitch client secret for your app. Defaults to the value of the TWITCH_CLIENT_SECRET env var if not set.
  • --auth-scope - The Twitch auth scope for your app. A space-separated string.Defaults to the value of the TWITCH_AUTH_SCOPE env var if not set.
  • --listen-port - The port that the temporary web server will listen on. Defaults to 42069 if not set.

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.