Skip to content

StafflinePeoplePlus/arctic

 
 

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 more flexible OAuth 2.0 client, see oslo/oauth2.

Supported providers

  • Apple
  • Atlassian
  • Auth0
  • Bitbucket
  • Box
  • Discord
  • Dropbox
  • Facebook
  • Figma
  • Github
  • GitLab
  • Google
  • Kakao
  • Keycloak
  • Line
  • LinkedIn
  • Microsoft Entra ID
  • Notion
  • Reddit
  • Salesforce
  • Spotify
  • Tumblr
  • Twitch
  • Twitter
  • Yahoo

About

OAuth 2.0 clients for popular providers

Resources

License

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published

Languages

  • TypeScript 98.8%
  • JavaScript 1.2%