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 = ; pkce;// => {code_verifier, code_challenge} pkce// => {...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.