title: sailsjs jwt token based authentication example
body: <p>I am following <a href="https://ericswann.wordpress.com/2015/04/24/nozus-js-1-intro-to-sails-with-passport-and-jwt-json-web-token-auth/" rel="nofollow">this Tutorial</a>.  </p>
  
  <p>But when i do <code>sails lift</code> to run my application, i am getting below error.</p>
  
  <blockquote>
    <p>throw new TypeError('JwtStrategy requires a function to retrieve jwt from requests (see option jwtFromRequest)');<br>
            ^                                                                                                                                                  </p>
    
    <p>TypeError: JwtStrategy requires a function to retrieve jwt from requests (see option jwtFromRequest) </p>
  </blockquote>
  
  <p>Please help me how to solve this error.</p>