Skip to content

slive-app/twitch-ident

Repository files navigation

Slive App - Twitch Identity

Twitch Identity Helper Functions

Setup

npm install @sliveapp/twitch-ident

Usage

Access providing accessToken and clientId

import { getChannels } from '@sliveapp/twitch-ident';

const channels = await getChannels(
  {
    broadcaster_id: '141981764',
  },
  {
    accessToken: '...',
    clientId: '...',
  },
);

Class-based approach

import TwitchIdent from '@sliveapp/twitch-ident';

const twitchIdent = new TwitchIdent({
  clientId: '...',
  getAccessToken: async () => {
    // ...
    return '...',
  },
});

const channels = await twitchIdent.getChannels({
  id: ['...', '...'],
});

About

Twitch Identity Helper Functions

Topics

Resources

License

Stars

Watchers

Forks

Contributors