cjgvrp-pkce
v1.0.3
Published
Generate Proof Key for Code Exchange (PKCE) challenge pair compatible with Coherent GT.
Readme
cjgvrp-pkce
Generates a Proof Key for Code Exchange (PKCE) challenge pair in browser environments.
Installation
npm install cjgvrp-pkceor
yarn add cjgvrp-pkceUsage
const pkce = require("cjgvrp-pkce");
pkce();Returns an object with code_verifier and code_challenge like this:
{
code_verifier: 'YnV4cVnTBbubIHcn-zOuTvi26G9bI0cSb-28loIj27g',
code_challenge: 'XniLYb3i4x_gmyTcl8fvklzHagRKIIO4dSX-ZZl-cP4'
}