title: Nodejs Passport display username
body: <p>In nodeJS I am using the passport module for authentication. I would like to show the username of the currently logged in user.</p>
  
  <p>I tried the following code:</p>
  
  <pre><code>passport.displayName
  </code></pre>
  
  <p>and</p>
  
  <pre><code>Localstrategy.username
  </code></pre>
  
  <p>And for more info please also see:
  <a href="http://passportjs.org/docs/profile">http://passportjs.org/docs/profile</a></p>
  
  <p>But that is not working. Any suggestions?</p>
  
  <p>Thanks</p>