Skip to content

Conversation

@menewman
Copy link
Contributor

Summary

Chipping away at #212 by converting four more classes:

  • Request
  • Response
  • CodeResponseType
  • TokenResponseType

(Do note that TokenResponseType's constructor simply throws a not implemented error, though. So that conversion was easy. 😉)

Linked issue(s)

A few checkboxes of #212 (but not the whole thing).

Involved parts of the project

Specifically the classes noted above, which affect pretty much everything (since Request/Response are core parts of the interface). But, there are no functional changes.

Added tests?

I did not update the tests, but these files are already covered under the existing tests, which should continue to pass after this refactoring.

OAuth2 standard

N/A

Reproduction

N/A

Copy link
Member

@jorenvandeweyer jorenvandeweyer left a comment

Choose a reason for hiding this comment

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

@menewman I got some small comments, could you please update these?

@jankapunkt PR seems fine. Could you also review this so this one can be merged?

Copy link
Member

@jankapunkt jankapunkt left a comment

Choose a reason for hiding this comment

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

There are some minor changes but I think at keast to has own property checks should be considered, even if the attack surface is rather superficial and imaginary

@menewman menewman requested a review from jankapunkt August 26, 2023 09:27
@jankapunkt jankapunkt merged commit 45eef09 into node-oauth:development Aug 26, 2023
@jankapunkt jankapunkt mentioned this pull request Aug 29, 2023
1 task
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.

3 participants