@twurple/auth-ext
v8.0.2
Published
Obtain auth tokens for Twitch inside an Extension.
Maintainers
Readme
Twurple - Extension auth provider
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:
npm install @twurple/auth-ext
# or
yarn add @twurple/auth-ext
# or
pnpm install @twurple/auth-extBasic 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.
