Socket
Socket
Sign inDemoInstall

@cokakoala/twurple-auth-ext

Package Overview
Dependencies
Maintainers
1
Versions
1
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@cokakoala/twurple-auth-ext

Obtain auth tokens for Twitch inside an Extension.


Version published
Maintainers
1
Created
Source

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.

Keywords

FAQs

Package last updated on 22 May 2023

Did you know?

Socket

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc