[x] Added tests for code changes or test/build only changes
[x] Updated the change log file (CHANGES.md|CHANGELOG.md) or test/build only changes
[x] Completed the PR template below:
Description
Patch tough-cookie bug in TokenManager
Fixes #463
Approach
Patch the cookie jar used in the TokenManager with the workaround for sliding updates in tough-cookie. This is mostly the same patch we used in cloudant-node-sdk just with a slight change to the initial _jar checks to suit the request module.
Schema & API Changes
"No change"
Security and Privacy
"No change"
Testing
Added a new test to validate a renewed cookie is applied after the original session lifetime expired.
Checklist
CHANGES.md
|CHANGELOG.md
) or test/build only changesDescription
Patch tough-cookie bug in TokenManager
Fixes #463
Approach
Patch the cookie jar used in the
TokenManager
with the workaround for sliding updates intough-cookie
. This is mostly the same patch we used incloudant-node-sdk
just with a slight change to the initial_jar
checks to suit therequest
module.Schema & API Changes
Security and Privacy
Testing
Monitoring and Logging