-
Notifications
You must be signed in to change notification settings - Fork 134
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
Why am I getting an error saying that expressJwt is not a function? #27
Comments
can you show how you import it?
|
Work with me : const expressJwt = require("express-jwt"); function authJwt() { async function isRevoked(req, payload, done) {
} catch (error) { module.exports = authJwt; |
The best answer so far I was stucked with this error and thanks to this i have resolved |
typeerror: expressjwt is not a function
at authjwt (e:\app\node js\e-school mobile app\e-school-mobile-app\backend\helpers\jwt.js:8:12)
at layer.handle [as handle_request] (e:\app\node js\e-school mobile app\e-school-mobile-app\backend\node_modules\express\lib\router\layer.js:95:5)
at trim_prefix
The text was updated successfully, but these errors were encountered: