pkce-gen
TypeScript icon, indicating that this package has built-in type declarations

1.1.0 • Public • Published

PKCE Generator

npm bundle size CI

Generate code challenge & code verifier for PKCE (zero-dependencies)

Note: If you want something, just open an issue.

Install

npm install --save pkce-gen

Usage

const pkce = require("pkce-gen");
 
pkce.create();
// => {code_verifier, code_challenge}
 
pkce.create({ hasState: true })
// => {...state}

Related

License

MIT ©️ Binyamin Green

Crypto-related logic is from this article.

Readme

Keywords

Package Sidebar

Install

npm i pkce-gen

Weekly Downloads

853

Version

1.1.0

License

MIT

Unpacked Size

4.34 kB

Total Files

5

Last publish

Collaborators

  • b3u