-
Notifications
You must be signed in to change notification settings - Fork 443
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
Add support for express v5 #348
Comments
possible Workaround: app.use(
/\/((?!healthcheck).)*/, // Token verification activated except for healthcheck request
async (req: any, res: any, next: NextFunction) => expressjwt({
secret: jwksRsa.expressJwtSecret({
cache: true,
rateLimit: true,
jwksRequestsPerMinute: 5,
jwksUri: jwksUri
}) as GetVerificationKey,
algorithms: ['RS256']
})(req, res, next) as Promise<void>
); Background: middlewares are considered async now and Request, Response interfaces are a little bit different. |
Thank you for the quick response, but unfortunately the workaround does not solve the issue, the compilation still fails:
|
@quinarygio do you have the |
Sorry I was missing it, as I copied from the received email. |
Seems like the main-problem is, that it is wrapping calling |
I can confirm the new version works well now with express v5, thank you! 😃 Tested on
|
Add support for Express v5.0
After upgrading to express v5.0.0 the compilation fails with the following error:
The text was updated successfully, but these errors were encountered: