@twurple/auth-ext
TypeScript icon, indicating that this package has built-in type declarations

7.1.0 • Public • Published

Twurple - Extension auth provider

GitHub license npm version PRs welcome

This is an {@link AuthProvider} implementation for the twurple package family that will use the token provided to your Extension by Twitch.

Installation

To add this library to your project, just execute:

yarn add @twurple/auth-ext

or using npm:

npm install @twurple/auth-ext

Basic usage

To instantiate an {@link ApiClient} with this auth provider, just pass it to its constructor:

import { ApiClient } from '@twurple/api';
import { ExtensionAuthProvider } from '@twurple/auth-ext';

const clientId = 'abc123';

const authProvider = new ExtensionAuthProvider(clientId);

const client = new ApiClient({
	authProvider
});

If you're getting stuck...

You can join the Twitch API Libraries Discord Server and ask in #twurple for support.

Package Sidebar

Install

npm i @twurple/auth-ext

Weekly Downloads

38

Version

7.1.0

License

MIT

Unpacked Size

8.55 kB

Total Files

9

Last publish

Collaborators

  • d-fischer