You can use the NodeJs library to generate a code challenge and a code verifier for OAuth and OIDC authorization. The sample program, index.js
, uses this library.
- Clone the repository:
git clone https://github.com/pareek-narendra/pkce
- Get into the project folder and install node modules:
npm i
- Go to the NodeJs folder using the following command:
cd NodeJs/
- Start and run the project:
node index.js
It will generate the code_verifier
and code_challenge
values. You can use these values in the OAuth and OIDC authorization code flow.