tachyon-auth
TypeScript icon, indicating that this package has built-in type declarations

32.0.0 • Public • Published

Tachyon Auth

This package provides a client side implementation for login at Twitch. Presently, only the Device Code Flow (DCF) is supported.

There is a complementary package tachyon-auth-server which provides corresponding server side utils.

General Overview

Ultimately, login flows yield an auth-token, which is used to authenticate with services at Twitch. The auth-token is stored via cookie and read by the client and server.

We do not store a refresh token because tokens do not currently expire.

When making authenticated calls to GQL, the suggested error handling pattern for applications is to clear the auth-token storage and retry the request unauthenticated if GQL returns a 403 Forbidden status code.

DCF

Here is an overview of the relevant interpol (backing service owned by Identity) endpoints.

Tracking Spec

Readme

Keywords

none

Package Sidebar

Install

npm i tachyon-auth

Weekly Downloads

0

Version

32.0.0

License

UNLICENSED

Unpacked Size

50 kB

Total Files

36

Last publish

Collaborators

  • frgjdhskxjogu