node-2fa-tutorial
node-2fa-tutorial copied to clipboard
expressJWT is not a function - error
virtual-machine:~/Documents/2fa-tutorial$ npm start
[email protected] start nodemon index.js
[nodemon] 2.0.20
[nodemon] to restart at any time, enter rs
[nodemon] watching path(s): .
[nodemon] watching extensions: js,mjs,json
[nodemon] starting node index.js
express-session deprecated undefined resave option; provide resave option index.js:14:9
express-session deprecated undefined saveUninitialized option; provide saveUninitialized option index.js:14:9
/home/craig/Documents/2fa-tutorial/index.js:71
const jwtMiddleware = expressJWT({
^
TypeError: expressJWT is not a function
at Object.
[email protected] Linux Ubuntu 22.4
Could you please advise of possible fix for the TypeError
Thank you Craig