Skip to content

Update oauth.c - #1750

Open
nancy-verma780 wants to merge 2 commits into
OpenPrinting:masterfrom
nancy-verma780:fix-oauth-validation-1609
Open

nancy-verma780 wants to merge 2 commits into
OpenPrinting:masterfrom
nancy-verma780:fix-oauth-validation-1609

Conversation

@nancy-verma780

@nancy-verma780 nancy-verma780 commented Oct 9, 2026 •

Copy link
Copy Markdown

Fix indentation, restore comment, and streamline nonce validation
#1609

@michaelrsweet michaelrsweet left a comment

Copy link
Copy Markdown
Member

Choose a reason for hiding this comment

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

So there are indentation issues in the changes, plus you lost the comment explaining the nonce validation step...

From a code perspective the two "if" blocks are no different from the one block. Left-to-right evaluation with parenthesis grouping the jnonce check and string comparison...

Refactor JWT and nonce validation logic for clarity.
@nancy-verma780

Copy link
Copy Markdown
Author

Hi @michaelrsweet, thank you for the feedback. I have streamlined the validation check into a single conditional statement, removed the nested layout, restored the original explanatory comment, and ensured the spacing matches the repository style guidelines. Ready for your re-review!

This branch has not been deployed

No deployments
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