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

@octokit/auth-token

Package Overview
Dependencies
Maintainers
4
Versions
25
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

@octokit/auth-token

GitHub API token authentication for browsers and Node.js

  • 5.1.1
  • latest
  • Source
  • npm
  • Socket score

Version published
Weekly downloads
10M
increased by6.76%
Maintainers
4
Weekly downloads
 
Created

What is @octokit/auth-token?

The @octokit/auth-token package is designed to simplify the process of authenticating GitHub API requests. It provides a straightforward way to create an authentication token that can be used with Octokit clients or any other HTTP client to interact with the GitHub API securely.

What are @octokit/auth-token's main functionalities?

Creating an authentication token

This feature allows you to create an authentication token using a personal access token. The created auth object can then be used to authenticate GitHub API requests.

const { createTokenAuth } = require('@octokit/auth-token');
const auth = createTokenAuth('personal-access-token123');
auth().then((authentication) => {
  console.log(authentication);
});

Other packages similar to @octokit/auth-token

Keywords

FAQs

Package last updated on 15 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