Skip to main content

Function: verifyCodeChallenge()

verifyCodeChallenge(codeVerifier, codeChallenge, method): boolean

Defined in: src/auth/oauth/pkce.ts:123

Verifies a code verifier against a challenge.

Parameters

codeVerifier

string

The code verifier from token request

codeChallenge

string

The code challenge from authorization request

method

"S256" = 'S256'

Challenge method (must be S256)

Returns

boolean

True if verifier matches challenge

Throws

PKCEError if method is not supported