pkce-gen
v1.1.0
Published
Generate code challenge & code verifier for PKCE (zero-dependencies)
Downloads
3,980
Readme
PKCE Generator
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
- bukalapak/pkce-npm - Same goal as here, and a bit bulkier, but (ostensibly) works in the browser as well.
- aaronpk/pkce-vanilla-js - Aaron Parecki's demo for doing this in the browser.
License
MIT ©️ Binyamin Green
Crypto-related logic is from this article.