Skip to main content
The Deno 2 Release Candidate is here
Learn more
Module

x/oauth4webapi/mod.ts>calculatePKCECodeChallenge

Low-Level OAuth 2 / OpenID Connect Client API for JavaScript Runtimes
Latest
function calculatePKCECodeChallenge
import { calculatePKCECodeChallenge } from "https://deno.land/x/oauth4webapi@v2.17.0/mod.ts";

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

Parameters

codeVerifier: string

code_verifier value generated e.g. from generateRandomCodeVerifier.

Returns

Promise<string>