A Twitch driver for AdonisJS Ally
Install the package from your command line.
npm install --save adonis-ally-twitch
or
yarn add adonis-ally-twitch
node ace configure adonis-ally-twitch
TWITCH_CLIENT_ID: Env.schema.string(),
TWITCH_CLIENT_SECRET: Env.schema.string(),
TWITCH_CALLBACK_URL: Env.schema.string(),
const allyConfig: AllyConfig = {
// ... other drivers
twitch: {
driver: 'twitch',
clientId: Env.get('TWITCH_CLIENT_ID'),
clientSecret: Env.get('TWITCH_CLIENT_SECRET'),
callbackUrl: Env.get('TWITCH_CALLBACK_URL'),
},
}
You can pass an string of scopes in your configuration, for example ['user:read:email', 'user:read:follows']
. You have a full list of scopes in the Twitch Oauth documentation
You can learn more about AdonisJS Ally in the documentation. And learn about the implementation in the ally-driver-boilerplate repository.
- Fork the repo
- Create your feature branch:
git checkout -b my-new-feature
- Commit your changes:
git commit -am 'feat: Add some feature'
- Push to the branch:
git push origin my-new-feature
- Submit a pull request :D