Function: verifyPkceChallenge()
verifyPkceChallenge(
args):boolean
Defined in: oauth.ts:13
Verifies a PKCE code challenge against a code verifier.
Only the S256 method is accepted. Passing plain or any other method
always returns false.
Parameters
| Parameter | Type | Description |
|---|---|---|
args | { codeChallenge: string; codeChallengeMethod: string; codeVerifier: string; } | - |
args.codeChallenge | string | The code_challenge value the client sent in the authorization request. |
args.codeChallengeMethod | string | The code_challenge_method advertised by the client. Must be S256. |
args.codeVerifier | string | The original code_verifier string from the client. |
Returns
boolean