Ecosyste.ms: Awesome
An open API service indexing awesome lists of open source software.
https://github.com/romainlanz/ally-twitch
https://github.com/romainlanz/ally-twitch
Last synced: 3 months ago
JSON representation
- Host: GitHub
- URL: https://github.com/romainlanz/ally-twitch
- Owner: RomainLanz
- License: mit
- Created: 2023-10-07T20:39:53.000Z (over 1 year ago)
- Default Branch: main
- Last Pushed: 2024-02-27T22:39:18.000Z (11 months ago)
- Last Synced: 2024-05-01T19:41:05.991Z (8 months ago)
- Language: TypeScript
- Size: 244 KB
- Stars: 6
- Watchers: 3
- Forks: 0
- Open Issues: 0
-
Metadata Files:
- Readme: README.md
- License: LICENSE.md
Awesome Lists containing this project
README
`@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'],
}),
})
```