appleboy / gin-jwt

JWT Middleware for Gin framework
MIT License
2.73k stars 382 forks source link

Update to golang-jwt V5 #332

Open gblandinkingland opened 5 months ago

gblandinkingland commented 5 months ago

Updates the golang-jwt/jwt dependency to V5 Updates an error check in the middleware due to expanded validation in V5 Modifies a check in the refresh flow due to the reworking of errors in V5

Let me know if additional changes need to be made, or if I missed anything in the contribution process.

Thanks!

codecov[bot] commented 5 months ago

Codecov Report

Attention: Patch coverage is 80.95238% with 4 lines in your changes are missing coverage. Please review.

Project coverage is 88.76%. Comparing base (a4e49c3) to head (110df2f). Report is 3 commits behind head on master.

:exclamation: Current head 110df2f differs from pull request most recent head 39f16e3. Consider uploading reports for the commit 39f16e3 to get more accurate results

Files Patch % Lines
auth_jwt.go 80.95% 2 Missing and 2 partials :warning:
Additional details and impacted files ```diff @@ Coverage Diff @@ ## master #332 +/- ## ========================================== + Coverage 87.36% 88.76% +1.40% ========================================== Files 1 1 Lines 459 454 -5 ========================================== + Hits 401 403 +2 + Misses 45 38 -7 Partials 13 13 ``` | [Flag](https://app.codecov.io/gh/appleboy/gin-jwt/pull/332/flags?src=pr&el=flags&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bo-Yi+Wu) | Coverage Δ | | |---|---|---| | [go-](https://app.codecov.io/gh/appleboy/gin-jwt/pull/332/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bo-Yi+Wu) | `88.76% <80.95%> (+1.40%)` | :arrow_up: | | [go-1.18](https://app.codecov.io/gh/appleboy/gin-jwt/pull/332/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bo-Yi+Wu) | `88.76% <80.95%> (+1.40%)` | :arrow_up: | | [go-1.19](https://app.codecov.io/gh/appleboy/gin-jwt/pull/332/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bo-Yi+Wu) | `88.76% <80.95%> (+1.40%)` | :arrow_up: | | [go-1.20](https://app.codecov.io/gh/appleboy/gin-jwt/pull/332/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bo-Yi+Wu) | `88.76% <80.95%> (+1.40%)` | :arrow_up: | | [go-1.21](https://app.codecov.io/gh/appleboy/gin-jwt/pull/332/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bo-Yi+Wu) | `88.76% <80.95%> (+1.40%)` | :arrow_up: | | [go-1.22](https://app.codecov.io/gh/appleboy/gin-jwt/pull/332/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bo-Yi+Wu) | `?` | | | [macos-latest](https://app.codecov.io/gh/appleboy/gin-jwt/pull/332/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bo-Yi+Wu) | `88.76% <80.95%> (+1.40%)` | :arrow_up: | | [ubuntu-latest](https://app.codecov.io/gh/appleboy/gin-jwt/pull/332/flags?src=pr&el=flag&utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bo-Yi+Wu) | `88.76% <80.95%> (+1.40%)` | :arrow_up: | Flags with carried forward coverage won't be shown. [Click here](https://docs.codecov.io/docs/carryforward-flags?utm_medium=referral&utm_source=github&utm_content=comment&utm_campaign=pr+comments&utm_term=Bo-Yi+Wu#carryforward-flags-in-the-pull-request-comment) to find out more.

:umbrella: View full report in Codecov by Sentry.
:loudspeaker: Have feedback on the report? Share it here.