Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

fix: Remove redundant token verification step #742

Merged
merged 4 commits into from
Nov 28, 2023

Conversation

evansims
Copy link
Member

Changes

This PR removes a redundant JWT verification step identified in #741. Verification is already performed in the token verifier constructor, so calling its verify() method afterward is redundant and unnecessary.

References

Closes #741.

Testing

No changes to testing were necessary for this change.

Contributor Checklist

@evansims evansims added the Scope: Bug Addressing unexpected problems or unintended behavior. label Nov 25, 2023
@codecov-commenter
Copy link

codecov-commenter commented Nov 25, 2023

Codecov Report

All modified and coverable lines are covered by tests ✅

Comparison is base (a8efbb8) 100.00% compared to head (9197f84) 100.00%.
Report is 3 commits behind head on main.

Additional details and impacted files
@@             Coverage Diff             @@
##                main      #742   +/-   ##
===========================================
  Coverage     100.00%   100.00%           
- Complexity      1338      1339    +1     
===========================================
  Files             62        62           
  Lines           4670      4671    +1     
===========================================
+ Hits            4670      4671    +1     
Flag Coverage Δ
unittestsvalidate 100.00% <100.00%> (ø)

Flags with carried forward coverage won't be shown. Click here to find out more.

☔ View full report in Codecov by Sentry.
📢 Have feedback on the report? Share it here.

@evansims
Copy link
Member Author

Making some minor unrelated code tweaks to accommodate upstream changes to our CI tooling, so tests will pass.

@evansims
Copy link
Member Author

Please disregard the remaining failing Rector and PHP CS Fixer tests, I need to fix a bug in the CI workflow there. The tests pass fine locally.

@evansims evansims marked this pull request as ready for review November 25, 2023 19:03
@evansims evansims requested a review from a team as a code owner November 25, 2023 19:03
@evansims evansims merged commit 11d1887 into main Nov 28, 2023
22 of 24 checks passed
@evansims evansims deleted the fix/redundant-token-verification branch November 28, 2023 23:12
@evansims evansims mentioned this pull request Nov 29, 2023
evansims added a commit that referenced this pull request Nov 29, 2023
**Fixed**
- fix: Remove redundant token verification step
[\#742](#742)
([evansims](https://github.com/evansims))
@evansims evansims mentioned this pull request Nov 30, 2023
evansims added a commit that referenced this pull request Nov 30, 2023
**Fixed**
- fix: Remove redundant token verification step
[\#742](#742)
([evansims](https://github.com/evansims))
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment
Labels
Scope: Bug Addressing unexpected problems or unintended behavior.
Projects
None yet
Development

Successfully merging this pull request may close these issues.

Double signature verification
3 participants