schibsted/sdk-js — pull request #2 by PAkerstrand (2013-06-13 12:32:54+00:00)
Title: Fixes an issue with expired sessions when the computer has been suspended for some time.

When the computer is resumed, then the timeout will continue to execute from where it was suspended, and not execute as early as is desired. In this fix we have a much shorter timeout value which checks the current time against the time when the session refresh is due, thus avoiding this issue.