1.2.8 • Published 2 years ago
twitchlib-auth v1.2.8
Twitchlib Authentication
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
2 years ago
1.2.7
2 years ago
1.2.65
2 years ago
1.2.64
2 years ago
1.2.63
2 years ago
1.2.62
2 years ago
1.2.61
2 years ago
1.2.6
2 years ago
1.2.5
2 years ago
1.2.4
2 years ago
1.2.3
2 years ago
1.2.2
2 years ago
1.2.1
2 years ago
1.2.0
2 years ago
1.1.0
2 years ago
1.0.9
2 years ago
1.0.8
2 years ago
1.0.7
2 years ago
1.0.6
2 years ago
1.0.5
2 years ago
1.0.4
2 years ago
1.0.3
2 years ago
1.0.2
2 years ago
1.0.1
2 years ago
1.0.0
2 years ago