amazon-archives / amazon-cognito-identity-js

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

Enable session cookies #605

Closed fsenart closed 6 years ago

fsenart commented 6 years ago

To set session scoped cookies, one must set the expires parameter to 0. Using hasOwnProperty method allows to overcome the limit of the if statement. Moreover, the current implementation seems to have a tipo, as the check is performed on "expire" and the value is taken from "expires" and the jsdoc advocates "expires".