Function: calculatePKCECodeChallenge()

September 22, 2024 ยท View on GitHub

๐Ÿ’— Help the project

Support from the community to continue maintaining and improving this module is welcome. If you find the module useful, please consider supporting the project by becoming a sponsor.


โ–ธ calculatePKCECodeChallenge(codeVerifier): Promise<string>

Calculates the PKCE code_challenge value to send with an authorization request using the S256 PKCE Code Challenge Method transformation.

Parameters

ParameterTypeDescription
codeVerifierstringcode_verifier value generated e.g. from generateRandomCodeVerifier.

Returns

Promise<string>

See

RFC 7636 - Proof Key for Code Exchange (PKCE)