Socket
Socket
Sign inDemoInstall

pkce-challenge

Package Overview
Dependencies
Maintainers
1
Versions
12
Alerts
File Explorer

Advanced tools

Socket logo

Install Socket

Detect and block malicious and high-risk dependencies

Install

pkce-challenge

Generate or verify a Proof Key for Code Exchange (PKCE) challenge pair


Version published
Weekly downloads
180K
decreased by-2.7%
Maintainers
1
Weekly downloads
 
Created

What is pkce-challenge?

The pkce-challenge npm package is used to generate PKCE (Proof Key for Code Exchange) challenge and verifier pairs. PKCE is a security extension for OAuth 2.0 to prevent authorization code interception attacks.

What are pkce-challenge's main functionalities?

Generate PKCE Challenge and Verifier

This feature allows you to generate a PKCE challenge and verifier pair. The code_verifier is a high-entropy cryptographic random string, and the code_challenge is a Base64 URL-encoded SHA256 hash of the code_verifier.

const pkceChallenge = require('pkce-challenge');
const { code_verifier, code_challenge } = pkceChallenge();
console.log('Code Verifier:', code_verifier);
console.log('Code Challenge:', code_challenge);

Other packages similar to pkce-challenge

Keywords

FAQs

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