@rlanz/ally-twitch

0.1.2 • Public • Published

@rlanz/ally-twitch

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']
  }),
})

Package Sidebar

Install

npm i @rlanz/ally-twitch

Weekly Downloads

47

Version

0.1.2

License

MIT

Unpacked Size

21.2 kB

Total Files

15

Last publish

Collaborators

  • romainlanz