Skip to content
Advertisement

Tag: express-jwt

TypeError: expressJwt is not a function

I’m trying to write middleware for user authorization in my app. I use this function to check if a route requires being sign in. The code is as follows: However, I get the following error: What could be the problem? None of the other answers seem to be helpful. Answer With the curly brackets you are trying to do object

Advertisement