1.2.8 • Published 3 years ago

twitchlib-auth v1.2.8

Weekly downloads
-
License
MIT
Repository
github
Last release
3 years ago

Twitchlib Authentication npm

A twitch authentication library that provides various means of handling auth tokens

Install

npm install twitchlib-auth

Usage

Static Auth Provider

A static auth provider is one that only uses a access token

import { StaticAuthProvider, IProvider } from "twitchlib-auth";

const provider: IProvider = new StaticAuthProvider("token");
provider.getTokenInfo().then((token) => {
    console.log(token);
}).catch((err) => {
    console.log(err);
});

Refreshing Auth Provider

A refreshing auth provider takes in a refresh token and optionally other information to generate refreshing auth tokens

1.2.8

3 years ago

1.2.7

3 years ago

1.2.65

3 years ago

1.2.64

3 years ago

1.2.63

3 years ago

1.2.62

3 years ago

1.2.61

3 years ago

1.2.6

3 years ago

1.2.5

3 years ago

1.2.4

3 years ago

1.2.3

3 years ago

1.2.2

3 years ago

1.2.1

3 years ago

1.2.0

3 years ago

1.1.0

3 years ago

1.0.9

3 years ago

1.0.8

3 years ago

1.0.7

3 years ago

1.0.6

3 years ago

1.0.5

3 years ago

1.0.4

3 years ago

1.0.3

3 years ago

1.0.2

3 years ago

1.0.1

3 years ago

1.0.0

3 years ago