-
Notifications
You must be signed in to change notification settings - Fork 68
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
feat: Improved error messages/warnings
New: If no secret/publicKey is provided by the user, no signature check is performed. Rather then silently skipping the signature check, this commit introduces a warning in this case. New: If the `exp` claim is not set and the token validation check is skipped, a warning is shown. New: After a successful signature validation a success message is shown. Changed: The `InvalidAlgorithm` error message now shows the selected algorithm and the algorithm specified in the JWT header. New: If no signature validation is performed, the return code is now `2`. All tests have been updated accordingly.
- Loading branch information
Showing
2 changed files
with
100 additions
and
60 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters