title: How can I cache oAuth token across API calls in node.js
body: <p>I have been able to set my code up so that when you make a request to an api function an oAuthHandler function automatically handles authentication for you. The problem I am having though is that I can't find a way to cache the token across multiple calls so I only request a new token if it has expired already.</p>
  
  <p>I have put samples of all the relevant code files and my test file in the following GIST. I have only removed the server connection details from the file.
  Gist: <a href="https://gist.github.com/jgpeak/56e82c58b368429d4aad" rel="nofollow">https://gist.github.com/jgpeak/56e82c58b368429d4aad</a></p>