amazon-archives / amazon-cognito-identity-js

Amazon Cognito Identity SDK for JavaScript
Other
986 stars 452 forks source link

Adjust time with clock drift when validating session #541

Closed jogold closed 6 years ago

jogold commented 7 years ago

This PR improves the session validation using the computer's clock drift.

It works as follows:

(this assumes a constant clock drift between authentications)

I implemented this because we had the case of a user with his computer clock more than 1 hour off in the future (positive drift), the session was never valid.


This change is Reviewable

jogold commented 6 years ago

Hi,

Any chance to get this reviewed/merged?

Thanks