@rlanz/ally-twitch
v0.1.2
Published
<p align="center"> <img src="https://github.com/RomainLanz/ally-twitch/assets/2793951/d3ccf29b-6169-4563-b932-5b15258a7fa3" alt="@rlanz/ally-twitch"> </p
Downloads
427
Maintainers
Readme
@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']
}),
})