Socket
Socket
Sign inDemoInstall

arctic

Package Overview
Dependencies
38
Maintainers
1
Versions
48
Alerts
File Explorer

Advanced tools

Install Socket

Detect and block malicious and high-risk dependencies

Install

    arctic

OAuth 2.0 clients for popular providers


Version published
Weekly downloads
25K
increased by11.93%
Maintainers
1
Created
Weekly downloads
 

Changelog

Source

1.4.0

Minor changes

  • Add MyAnimeList provider. (#89)
  • Add Roblox provider. (#88)
  • Add VK provider. (#88)

Patch changes

  • Update dependencies. (#89)

Readme

Source

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

FAQs

Last updated on 28 Mar 2024

Did you know?

Socket for GitHub automatically highlights issues in each pull request and monitors the health of all your open source dependencies. Discover the contents of your packages and block harmful activity before you install or update your dependencies.

Install

Related posts

SocketSocket SOC 2 Logo

Product

  • Package Alerts
  • Integrations
  • Docs
  • Pricing
  • FAQ
  • Roadmap

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc