Ecosyste.ms: Awesome

An open API service indexing awesome lists of open source software.

Awesome Lists | Featured Topics | Projects

https://github.com/romainlanz/ally-twitch


https://github.com/romainlanz/ally-twitch

Last synced: 3 months ago
JSON representation

Awesome Lists containing this project

README

        


@rlanz/ally-twitch


Download
Version
License

`@rlanz/ally-twitch` is a Twitch driver for [AdonisJS Ally](https://docs.adonisjs.com/guides/social-auth).

## Getting Started

This package is available in the npm registry.

```bash
npm install @rlanz/ally-twitch
```

Next, configure the package by running the following command.

```bash
node ace configure @rlanz/ally-twitch
```

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

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