From ac014f2882a82e1ef688c8542b09a0cab76dcffd Mon Sep 17 00:00:00 2001 From: Filip Skokan Date: Sun, 22 Sep 2024 11:43:35 +0200 Subject: [PATCH] docs: fix calculatePKCECodeChallenge description --- docs/functions/calculatePKCECodeChallenge.md | 2 +- src/index.ts | 2 +- 2 files changed, 2 insertions(+), 2 deletions(-) diff --git a/docs/functions/calculatePKCECodeChallenge.md b/docs/functions/calculatePKCECodeChallenge.md index 4ffe6c81..1d7b65ee 100644 --- a/docs/functions/calculatePKCECodeChallenge.md +++ b/docs/functions/calculatePKCECodeChallenge.md @@ -8,7 +8,7 @@ Support from the community to continue maintaining and improving this module is ▸ **calculatePKCECodeChallenge**(`codeVerifier`): [`Promise`](https://developer.mozilla.org/docs/Web/JavaScript/Reference/Global_Objects/Promise)\<`string`\> -Calculates the PKCE `code_verifier` value to send with an authorization request using the S256 +Calculates the PKCE `code_challenge` value to send with an authorization request using the S256 PKCE Code Challenge Method transformation. ## Parameters diff --git a/src/index.ts b/src/index.ts index 3f8c802e..e4e65bbb 100644 --- a/src/index.ts +++ b/src/index.ts @@ -1387,7 +1387,7 @@ export function generateRandomNonce(): string { } /** - * Calculates the PKCE `code_verifier` value to send with an authorization request using the S256 + * Calculates the PKCE `code_challenge` value to send with an authorization request using the S256 * PKCE Code Challenge Method transformation. * * @param codeVerifier `code_verifier` value generated e.g. from {@link generateRandomCodeVerifier}.