title: Passport Azure AD This expression is not callable
body: <p>In the <a href="https://github.com/Azure-Samples/active-directory-javascript-nodejs-webapi-v2/blob/master/index.js" rel="nofollow noreferrer">example</a> the following piece of code is used:</p>
  <pre class="lang-js prettyprint-override"><code>import { BearerStrategy } from 'passport-azure-ad'
  
  const bearerStrategy = new BearerStrategy(config, (token, done) =&gt; {
          // Send user info using the second argument
          done(null, {}, token);
      }
  );
  </code></pre>
  <p>This throws the following TS error:
  <a href="https://i.stack.imgur.com/E2bCU.png" rel="nofollow noreferrer"><img src="https://i.stack.imgur.com/E2bCU.png" alt="enter image description here" /></a></p>
  <pre><code>src/index.ts:26:12 - error TS2349: This expression is not callable.
    Type 'ITokenPayload' has no call signatures.
  
  26     return done(null, {}, token)
  </code></pre>
  <p>Although the code works I was wondering how to avoid this error.</p>