# arctic

> OAuth 2.0 clients for popular providers

Latest version **3.7.0** (published 2025-05-21) · MIT license · 0 weekly downloads

> **Deprecated.** This package is deprecated.

## Install

```sh
npm install arctic
pnpm add arctic
yarn add arctic
bun add arctic
```

## Health

**Score 10/100 (F)** — status: deprecated.

Negative: deprecated.

## Facts

| | |
|---|---|
| Version | 3.7.0 |
| Published | 2025-05-21 |
| First published | 2015-04-17 |
| Weekly downloads | 0 |
| License | MIT |
| TypeScript types | bundled |
| Module format | ESM + CommonJS |
| Dependencies | 3 |
| Unpacked size | 150 KB |
| Known vulnerabilities | 0 |
| Install scripts | no |
| Provenance | attested (GitHub Actions) |
| GitHub stars | 1718 |
| Author | pilcrowOnPaper |
| Maintainers | pilcrowonpaper |

## Links

- npm: https://www.npmjs.com/package/arctic
- Repository: https://github.com/pilcrowonpaper/arctic
- Homepage: https://github.com/pilcrowonpaper/arctic#readme
- Issues: https://github.com/pilcrowonpaper/arctic/issues
- npm.io page: https://npm.io/package/arctic

## Dependencies (3)

- [@oslojs/jwt](https://npm.io/package/@oslojs/jwt.md) 0.2.0
- [@oslojs/crypto](https://npm.io/package/@oslojs/crypto.md) 1.0.1
- [@oslojs/encoding](https://npm.io/package/@oslojs/encoding.md) 1.1.0

## Recent versions

- 3.7.0 (latest) — 2025-05-21
- 2.3.4 (legacy) — 2025-01-22
- 2.0.0 (v2-latest) — 2024-10-20
- 2.0.0-next.9 (next) — 2024-09-18
- 3.6.1 — 2025-05-08
- 3.6.0 — 2025-03-27
- 3.5.0 — 2025-03-05
- 3.4.0 — 2025-02-26
- 3.3.0 — 2025-02-12
- 3.2.4 — 2025-02-06
- 3.2.3 — 2025-02-06
- 3.2.2 — 2025-02-01
- 3.2.1 — 2025-01-22
- 3.2.0 — 2025-01-20
- 3.1.3 — 2025-01-15
- … 72 more at https://npm.io/package/arctic/versions

## README

# Arctic

**Documentation: [arcticjs.dev](https://arcticjs.dev)**

Arctic is a collection of OAuth 2.0 clients for popular providers. Only the authorization code flow is supported. Built on top of the Fetch API, it's light weight, fully-typed, and runtime-agnostic.

```
npm install arctic
```

```ts
import * as arctic from "arctic";

const github = new arctic.GitHub(clientId, clientSecret, redirectURI);

const state = arctic.generateState();
const scopes = ["user:email"];
const authorizationURL = github.createAuthorizationURL(state, scopes);

// ...

const tokens = await github.validateAuthorizationCode(code);
const accessToken = tokens.accessToken();
```

> Arctic only supports providers that follow the OAuth 2.0 spec (including PKCE and token revocation).

## Semver

Arctic does not strictly follow semantic versioning. While we aim to only introduce breaking changes in major versions, we may introduce them in a minor update if a provider updates their API in a non-backward compatible way. However, they will never be introduced in a patch update.

## Supported providers

- 42 School
- Amazon Cognito
- AniList
- Apple
- Atlassian
- Auth0
- Authentik
- Autodesk Platform Services
- Battle.net
- Bitbucket
- Box
- Bungie
- Coinbase
- Discord
- DonationAlerts
- Dribbble
- Dropbox
- Etsy
- Epic Games
- Facebook
- Figma
- Gitea
- GitHub
- GitLab
- Google
- Intuit
- Kakao
- KeyCloak
- Kick
- Lichess
- Line
- Linear
- LinkedIn
- Mastodon
- MercadoLibre
- MercadoPago
- Microsoft Entra ID
- MyAnimeList
- Naver
- Notion
- Okta
- osu!
- Patreon
- Polar
- Reddit
- Roblox
- Salesforce
- Shikimori
- Slack
- Spotify
- Start.gg
- Strava
- Synology
- TikTok
- Tiltify
- Tumblr
- Twitch
- Twitter
- VK
- WorkOS
- Yahoo
- Yandex
- Zoom

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