Huge News!Announcing our $40M Series B led by Abstract Ventures.Learn More
Socket
Sign inDemoInstall
Socket

@octokit/oauth-authorization-url

Package Overview
Dependencies
Maintainers
4
Versions
21
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/oauth-authorization-url

Universal library to retrieve GitHub’s identity URL for the OAuth web flow

  • 7.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
1.2M
increased by2.17%
Maintainers
4
Weekly downloads
 
Created

What is @octokit/oauth-authorization-url?

@octokit/oauth-authorization-url is a package that helps you generate OAuth authorization URLs for GitHub. This is useful for applications that need to authenticate users via GitHub and obtain an OAuth token for accessing GitHub APIs on behalf of the user.

What are @octokit/oauth-authorization-url's main functionalities?

Generate OAuth Authorization URL

This feature allows you to generate an OAuth authorization URL that you can redirect users to. The URL includes the necessary query parameters such as client ID, scopes, and state.

const { OAuthApp } = require('@octokit/oauth-authorization-url');

const app = new OAuthApp({
  clientId: 'your-client-id',
  clientSecret: 'your-client-secret'
});

const url = app.getAuthorizationUrl({
  scopes: ['repo', 'user'],
  state: 'random-string'
});

console.log(url);

Other packages similar to @octokit/oauth-authorization-url

Keywords

FAQs

Package last updated on 16 Apr 2024

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