title: if (!options.algorithms) throw new Error('algorithms should be set'); Error: algorithms should be set
body: <p>I started learning Nodejs and i am stuck somewhere in the middle. I installed a new library from npm  and that was <strong>express-jwt</strong>, its showing some kind of error after running. Attached the code and the logs of the error, please help me out!</p>
  <pre><code>const jwt = require('jsonwebtoken');
  require('dotenv').config()
  const expressJwt =  require('express-jwt');
  const User = require('../models/user');
  
  
  
  
  exports.requireSignin =  expressJwt({ secret:  process.env.JWT_SECRET});
  </code></pre>
  <p>The below thing is  the logs of the error.</p>
  <pre><code>[nodemon] starting `node app.js`
  D:\shubh\proj\Nodejs\nodeapi\node_modules\express-jwt\lib\index.js:22
    if (!options.algorithms) throw new Error('algorithms should be set');
                             ^
  
  **Error: algorithms should be set**
      at module.exports (D:\shubh\proj\Nodejs\nodeapi\node_modules\express-jwt\lib\index.js:22:34)
      at Object.&lt;anonymous&gt; (D:\shubh\proj\Nodejs\nodeapi\controllers\auth.js:64:26)
      at Module._compile (internal/modules/cjs/loader.js:1138:30)
      at Object.Module._extensions..js (internal/modules/cjs/loader.js:1158:10)
   
  </code></pre>