title: Custom passport strategy with global AuthGuard
body: <p>I've implemented JWT authentication as described in that page <a href="https://docs.nestjs.com/techniques/authentication" rel="nofollow noreferrer">https://docs.nestjs.com/techniques/authentication</a></p>
  
  <p>When I use <code>@UseGuard</code> decorators for specific controllers it works fine. However if I set this in <code>main.ts</code> using <code>useGlobalGuards</code> then my strategy is not used and probably the default one is used.</p>
  
  <pre><code>app.useGlobalGuards(new (AuthGuard('jwt')));
  </code></pre>
  
  <p>What am I doing wrong?</p>