Socket
Socket
Sign inDemoInstall

arctic

Package Overview
Dependencies
Maintainers
1
Versions
60
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

arctic

OAuth 2.0 with built-in providers


Version published
Weekly downloads
27K
decreased by-19.55%
Maintainers
1
Weekly downloads
 
Created
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.

import { GitHub, generateState } from "arctic";

const github = new GitHub(clientId, clientSecret);

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

const tokens = await github.validateAuthorizationCode(code);

Read the documentation

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
  • Spotify
  • Twitch
  • Twitter
  • Yahoo

FAQs

Package last updated on 09 Dec 2023

Did you know?

Socket

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
  • Changelog

Packages

npm

Stay in touch

Get open source security insights delivered straight into your inbox.


  • Terms
  • Privacy
  • Security

Made with ⚡️ by Socket Inc