title: Sails JS: How to store and access current user data?
body: <p>I already checked a lot of references and found good sources like this one: <a href="https://stackoverflow.com/questions/33145550/get-current-user-from-inside-the-model-in-sails">Get current user from inside the model in Sails</a>. So I'm asking for best practices and your experiences.</p>
  
  <p>As I've developed a quite complex platform based on JWT-Authentication I have to fix the major mistake to store the current user data (<em>while user requests something</em>) on my sails instance. <strong>I know that this leads to major security leaks (for more than one user).</strong> </p>
  
  <p>The question is: How can I <strong>store and access</strong> current user data without passing the session object through almost all methods I've created? </p>
  
  <p>Is passing the session object around through all helpers, utilities etc. the only way to solve this? Instead of using a centralized Service like: <code>UserService.getCurrentUser();</code></p>
  
  <p>Any help is highly appreciated. Thanks!</p>