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.
Parameters
Section titled “Parameters”verifier
Section titled “verifier”string
The plaintext code verifier string.
Returns
Section titled “Returns”Promise<string>
The base64url-encoded SHA-256 challenge.