Skip to content

Conversation

@harphield
Copy link

Type: bug fix | new feature | code quality | documentation

Link to issue: #198

In raising this pull request, I confirm the following (please check boxes):

  • I have read and understood the Contributing Guidelines.
  • I have checked that another pull request for this purpose does not exist.
  • I wrote some tests for this PR.

Small description of change:

  • Fixes generatePKCECodeVerifier() to never generate strings < 43 or > 128 in length
  • adds pkceCodeVerifierLength to customize the code_verifier length

Thanks 😺

Matej Labas added 2 commits August 27, 2025 14:32
…> 128 in length

- adds pkceCodeVerifierLength to customize the code_verifier length

protected bool $pkce = false;

protected int $pkceCodeVerifierLength = 96;
Copy link
Contributor

@ADmad ADmad Aug 27, 2025

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Can we rename this to pkceCodeVerifierByteLength to be more clear about what length it indicates?

Copy link
Author

Choose a reason for hiding this comment

The reason will be displayed to describe this comment to others. Learn more.

Yes, that will make it more understandable. I also renamed it in the generatePKCECodeVerifier method.

@ADmad ADmad merged commit 3a5ccbe into SocialConnect:master Aug 28, 2025
8 checks passed
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment

Labels

None yet

Projects

None yet

Development

Successfully merging this pull request may close these issues.

2 participants