indexzero/node-asana-api — pull request #12 by productiveme (2014-03-17 13:36:22+00:00)
Title: request method - attempt OAuth token refresh

On first 401 - Access Denied error, if sufficient OAuth info supplied, attempt token refresh and retry request with new access token.

Typically when the user's access token is stored with his session, and the session is longer than the token's lifespan on Asana, any attempt to use the API will result in 401 - Access Denied.