Important: This documentation covers Yarn 1 (Classic).
For Yarn 2+ docs and migration guide, see yarnpkg.com.

Package detail

@rlanz/ally-twitch

romainlanz182MIT0.1.2TypeScript support: included

@rlanz/ally-twitch </p

ally, twitch, adonis, adonisjs, oauth2, social-auth

readme

@rlanz/ally-twitch </p

Download Version License

@rlanz/ally-twitch is a Twitch driver for AdonisJS Ally.

Getting Started

This package is available in the npm registry.

npm install @rlanz/ally-twitch

Next, configure the package by running the following command.

node ace configure @rlanz/ally-twitch

Then register the service inside the configuration file config/ally.ts.

// config/ally.ts
import { defineConfig } from '@adonisjs/ally';
import { twitch } from '@rlanz/ally-twitch'
import env from '#start/env';

const allyConfig = defineConfig({
  twitch: twitch({
    clientId: env.get('TWITCH_CLIENT_ID'),
    clientSecret: env.get('TWITCH_CLIENT_SECRET'),
    callbackUrl: env.get('TWITCH_CALLBACK_URL'),
    scopes: ['user:read:email']
  }),
})