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

chore: laying the grounds for 11.0.0 #1337

Merged
merged 6 commits into from
Jun 15, 2023
Merged

chore: laying the grounds for 11.0.0 #1337

merged 6 commits into from
Jun 15, 2023

Conversation

kamilmysliwiec
Copy link
Member

PR Checklist

Please check if your PR fulfills the following requirements:

PR Type

What kind of change does this PR introduce?

  • Bugfix
  • Feature
  • Code style update (formatting, local variables)
  • Refactoring (no functional changes, no api changes)
  • Build related changes
  • CI related changes
  • Other... Please describe:

What is the current behavior?

Issue Number: N/A

What is the new behavior?

Does this PR introduce a breaking change?

  • Yes
  • No

Other information

hender-hs and others added 6 commits March 24, 2023 13:22
The payload and signOptions parameters have incorrect type checking,
therefore possibly breaking the jsonwebtoken source code
passing invalid payload and sign options.
Scenario: if "expiresIn" has been set in the nestjs module and uses payload
as a string, it'll break the code, because jsonwebtoken does not allow the use
of "expiresIn" option with a string payload.
In order to solve the problem, it is necessary predict the developer's behavior using types.
Also throw an error in case of incorrect use of the sign method of the JwtService class.
@kamilmysliwiec kamilmysliwiec merged commit a0466b6 into master Jun 15, 2023
@delete-merged-branch delete-merged-branch bot deleted the 11.0.0 branch June 15, 2023 11:11
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.

1 participant