MSOpenTech/azure-activedirectory-library-for-nodejs — pull request #10 by RandalliLama (2014-06-06 19:23:52+00:00)
Title: Bug fixes for Issue #6 and #7 plus fix for incorrect caching of refresh tokens.

Fix issue with refreshed cache entries not having userId info. The server does not send back an id_token on token refresh requests, so the cache code needs to fill in the new entry with the originating entries userId information.

Return a reasonable error message when an entry cannot be found in the cache during the basic acquireContext flow.

Add some slop, 5 mins, to token expiry calculation to account for clock skew and network latency.