appleboy / gin-jwt

JWT Middleware for Gin framework
MIT License
2.77k stars 388 forks source link

Add ParseOption in order to skip claim validation in jwt.Parse method #286

Open re-Tick opened 2 years ago

re-Tick commented 2 years ago

I am trying to test my API's which are having different expiration time, so I had written my custom MiddlewareFunc. Claims will be validated in this custom function that's need to avoid validation in ParseWithClaims method. If you approve this, I will make a PR for this.

re-Tick commented 2 years ago

I have made a PR for this issue. These changes will not effect existing flow. They just adds ParseOptions. Please review it.