Skip to content

computeCodeChallenge

computeCodeChallenge(verifier): Promise<string>

Defined in: packages/core/src/crypto.ts:76

Computes a PKCE code challenge from a code verifier (RFC 7636 Section 4.2).

Applies BASE64URL(SHA-256(ASCII(code_verifier))) using the Web Crypto API.

string

The plaintext code verifier string.

Promise<string>

The base64url-encoded SHA-256 challenge.