Currently, Oauth middleware validates if the JWT token received is valid or not but it does not check if it is expired.
As per, RFC-7519 it is optional, but how would user configure the middleware to check? Right Now, user would need to check in handler or write their own middleware - which shouldn't be the case
There should be an option while user set the JWKS url to enable these feature to validate the token expiry.
Currently, Oauth middleware validates if the JWT token received is valid or not but it does not check if it is expired.
As per, RFC-7519 it is optional, but how would user configure the middleware to check? Right Now, user would need to check in handler or write their own middleware - which shouldn't be the case
There should be an option while user set the JWKS url to enable these feature to validate the token expiry.