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

x/oauth2_server/pkce.ts>generateCodeVerifier

A standards compliant implementation of an OAuth 2.0 authorization server with PKCE support.
Latest
function generateCodeVerifier
import { generateCodeVerifier } from "https://deno.land/x/oauth2_server@0.12.0/pkce.ts";

Generates a random code verifier with a minimum of 256 bits of entropy. This is done by generating a random 32-octet sequence then base64url encoding it to produce a 43 octet URL safe string. https://datatracker.ietf.org/doc/html/rfc7636#section-7.1