deno.land / x / oauth4webapi@v1.2.2 / docs / functions / calculatePKCECodeChallenge.md

calculatePKCECodeChallenge.md

Function: calculatePKCECodeChallenge

💗 Help the project

â–¸ calculatePKCECodeChallenge(codeVerifier): Promise<string>

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

see RFC 7636 - Proof Key for Code Exchange by OAuth Public Clients (PKCE)

Parameters

Name Type Description
codeVerifier string code_verifier value generated e.g. from generateRandomCodeVerifier.

Returns

Promise<string>

oauth4webapi

Version Info

Tagged at
2 years ago