Arctic

流行提供商的 OAuth 2.0 客户端。「OAuth 2.0 clients for popular providers」

Github星跟踪图

Arctic

Documentation: arcticjs.dev

Arctic is a collection of OAuth 2.0 clients for popular providers. It only supports the authorization code grant type and intended to be used server-side. Built on top of the Fetch API, it's light weight, fully-typed, and runtime-agnostic.

npm install arctic
import { GitHub, generateState } from "arctic";

const github = new GitHub(clientId, clientSecret);

const state = 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
  • Bitbucket
  • Box
  • Bungie
  • Coinbase
  • Discord
  • Dribbble
  • Dropbox
  • Etsy
  • Epic Games
  • Facebook
  • Figma
  • GitHub
  • GitLab
  • Google
  • Intuit
  • Kakao
  • Lichess
  • Line
  • Linear
  • LinkedIn
  • Microsoft Entra ID
  • MyAnimeList
  • Naver
  • Notion
  • Okta
  • osu!
  • Patreon
  • Polar
  • Reddit
  • Roblox
  • Salesforce
  • Shikimori
  • Slack
  • Spotify
  • Start.gg
  • Strava
  • Tiltify
  • Tumblr
  • Twitch
  • Twitter
  • VK
  • WorkOS
  • Yahoo
  • Yandex
  • Zoom

主要指标

概览
名称与所有者pilcrowonpaper/arctic
主编程语言TypeScript
编程语言 (语言数: 3)
平台
许可证MIT License
所有者活动
创建于2023-11-02 07:15:13
推送于2025-03-27 01:43:34
最后一次提交
发布数38
最新版本名称v3.6.0 (发布于 )
第一版名称v1.1.1 (发布于 )
用户参与
星数1.4k
关注者数2
派生数86
提交数496
已启用问题?
问题数115
打开的问题数11
拉请求数156
打开的拉请求数1
关闭的拉请求数25
项目设置
已启用Wiki?
已存档?
是复刻?
已锁定?
是镜像?
是私有?