Skip to main content
Deno 2 is finally 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@v3.1.2/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>