authllizer-twitch-oauth2
Version: 
Authllizer Twitch OAuth2 Provider
35 lines (30 loc) • 1.47 kB
Markdown
# Authllizer Twitch OAuth2 Provider
[](https://github.com/yisraelx/authllizer/blob/master/packages/providers/authllizer-twitch-oauth2)
[](https://www.npmjs.com/package/authllizer-twitch-oauth2)
[](https://github.com/yisraelx/authllizer/blob/master/LICENSE)
[](https://bundlephobia.com/result?p=authllizer-twitch-oauth2)
[](https://www.typescriptlang.org)
## Install
```sh
$ npm install --save authllizer-twitch-oauth2
# and install peer dependencies 
$ npm install --save @authllizer/core
```
## Use
```ts
import { Authllizer, IAuthllizerOptions } from '@authllizer/core';
import TwitchOAuth2, { ITwitchOAuth2Options } from 'authllizer-twitch-oauth2';
let authllizer: Authllizer = new Authllizer({
    providers: {
        twitch: TwitchOAuth2.extend({
            clientId: '***',
            // ...
        } as ITwitchOAuth2Options),
        // ...
    },
    // ...
} as IAuthllizerOptions);
```
## License
Copyright © 2017 [Yisrael Eliav](https://github.com/yisraelx),
Licensed under the [MIT license](https://github.com/yisraelx/authllizer/blob/master/LICENSE).