# @twurple/auth

> Authenticate with Twitch and stop caring about refreshing tokens.

Latest version **8.2.0** (published 2026-09-13) · MIT license · 0 weekly downloads

## Install

```sh
npm install @twurple/auth
pnpm add @twurple/auth
yarn add @twurple/auth
bun add @twurple/auth
```

## Health

**Score 65/100 (B)** — status: active.

Positive: has types; esm support; no vulnerabilities; recently updated; high maintenance score.

Warnings: low downloads.

## Facts

| | |
|---|---|
| Version | 8.2.0 |
| Published | 2026-09-13 |
| First published | 2021-04-14 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 6 |
| Unpacked size | 78.9 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| GitHub stars | 753 |
| Author | Daniel Fischer |
| Maintainers | d-fischer |
| Keywords | twitch, auth, authentication, oauth, stream, bot |

## Links

- npm: https://www.npmjs.com/package/@twurple/auth
- Repository: https://github.com/twurple/twurple
- Homepage: https://twurple.js.org
- Issues: https://github.com/twurple/twurple/issues
- Funding: https://github.com/sponsors/d-fischer
- npm.io page: https://npm.io/package/@twurple/auth

## Dependencies (6)

- [tslib](https://npm.io/package/tslib.md) ^2.0.3
- [@twurple/common](https://npm.io/package/@twurple/common.md) 8.2.0
- [@d-fischer/logger](https://npm.io/package/@d-fischer/logger.md) ^4.2.1
- [@twurple/api-call](https://npm.io/package/@twurple/api-call.md) 8.2.0
- [@d-fischer/shared-utils](https://npm.io/package/@d-fischer/shared-utils.md) ^3.6.1
- [@d-fischer/typed-event-emitter](https://npm.io/package/@d-fischer/typed-event-emitter.md) ^3.3.3

## Alternatives

- [@pothos/plugin-authz](https://npm.io/package/@pothos/plugin-authz.md) — 12.4K weekly downloads
- [@bounded-sh/client](https://npm.io/package/@bounded-sh/client.md) — 3.2K weekly downloads
- [@luigi-project/plugin-auth-oauth2](https://npm.io/package/@luigi-project/plugin-auth-oauth2.md) — 2.3K weekly downloads
- [@nocobase/plugin-verification](https://npm.io/package/@nocobase/plugin-verification.md) — 2.0K weekly downloads
- [escher-request](https://npm.io/package/escher-request.md) — 545 weekly downloads

## Recent versions

- 8.2.0 (latest) — 2026-09-13
- 7.1.0-pre.9 (next) — 2024-03-11
- 8.1.4 — 2026-05-10
- 8.1.3 — 2026-04-03
- 8.1.2 — 2026-04-01
- 8.1.1 — 2026-04-01
- 8.1.0 — 2026-04-01
- 8.0.3 — 2026-01-13
- 8.0.2 — 2025-11-28
- 8.0.1 — 2025-11-26
- 8.0.0 — 2025-11-25
- 7.4.0 — 2025-07-27
- 7.3.0 — 2025-04-26
- 7.2.1 — 2024-12-22
- 7.2.0 — 2024-10-08
- … 145 more at https://npm.io/package/@twurple/auth/versions

## README

# Twurple - Authentication

[![GitHub license](https://img.shields.io/badge/license-MIT-blue.svg)](https://github.com/twurple/twurple/blob/main/LICENSE)
[![npm version](https://img.shields.io/npm/v/@twurple/auth.svg?style=flat)](https://www.npmjs.com/package/@twurple/auth)
![PRs welcome](https://img.shields.io/badge/PRs-welcome-brightgreen.svg)

Authenticate with Twitch and stop caring about refreshing tokens.

## Installation

	npm install @twurple/auth
	# or
	yarn add @twurple/auth
	# or
	pnpm install @twurple/auth

## Documentation

A good place to start with this library is the [documentation](https://twurple.js.org)
which also includes a complete reference of all classes and interfaces, as well as changes and deprecations between major versions.

## If you're getting stuck...

You can join the [Twitch API Libraries Discord Server](https://discord.gg/b9ZqMfz) and ask in `#twurple` for support.

---
_Source: https://npm.io/package/@twurple/auth · Machine-readable twin of the npm.io package page. Health data is recomputed on every publish._
