Skip to content

nayyara-airlangga/arctic

This branch is 2 commits ahead of, 176 commits behind pilcrowonpaper/arctic:main.

Folders and files

NameName
Last commit message
Last commit date
Feb 18, 2024
Feb 2, 2024
Feb 18, 2024
Feb 18, 2024
Nov 2, 2023
Nov 2, 2023
Jan 31, 2024
Nov 2, 2023
Nov 2, 2023
Feb 16, 2024
Jan 31, 2024
Nov 2, 2023
Feb 18, 2024
Feb 16, 2024
Nov 2, 2023

Repository files navigation

Arctic

Arctic is an OAuth 2.0 library for JavaScript/TypeScript that supports numerous providers. It's light weight, fully-typed, and runtime-agnostic. Read the documentation →

import { GitHub, generateState } from "arctic";

const github = new GitHub(clientId, clientSecret);

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

const tokens = await github.validateAuthorizationCode(code);

For a flexible OAuth 2.0 client, see oslo/oauth2.

Arctic only supports providers that strictly follow the OAuth 2.0 spec (including PKCEG).

Supported providers

  • Amazon Cognito
  • Apple
  • Atlassian
  • Auth0
  • Bitbucket
  • Box
  • Coinbase
  • Discord
  • Dribbble
  • Dropbox
  • Facebook
  • Figma
  • Github
  • GitLab
  • Google
  • Kakao
  • Keycloak
  • Lichess
  • Line
  • Linear
  • LinkedIn
  • Microsoft Entra ID
  • Notion
  • Okta
  • osu!
  • Patreon
  • Reddit
  • Salesforce
  • Spotify
  • Strava
  • Tumblr
  • Twitch
  • Twitter
  • WorkOS
  • Yahoo
  • Zoom

About

OAuth 2.0 clients for popular providers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 99.1%
  • JavaScript 0.9%