Closed ricellis closed 3 years ago
Auto-renewed session cookies do not persist beyond original session lifetime.
It turns out request uses tough-cookie and this problem is caused by https://github.com/salesforce/tough-cookie/issues/154 and is very similar to https://github.com/IBM/cloudant-node-sdk/issues/209. The reason it was not obvious before in this library was that a 401 response causes a fallback renewal so it was typically masked by that fallback renewal attempt.
request
tough-cookie
401
The second request should have the cookie for the second session.
The second request has no cookie (as is purged at the first session expiry time).
4.2.2 to 4.5.0
14.17.3
Bug Description
Auto-renewed session cookies do not persist beyond original session lifetime.
It turns out
request
usestough-cookie
and this problem is caused by https://github.com/salesforce/tough-cookie/issues/154 and is very similar to https://github.com/IBM/cloudant-node-sdk/issues/209. The reason it was not obvious before in this library was that a401
response causes a fallback renewal so it was typically masked by that fallback renewal attempt.1. Steps to reproduce and the simplest code sample possible to demonstrate the issue
2. What you expected to happen
The second request should have the cookie for the second session.
3. What actually happened
The second request has no cookie (as is purged at the first session expiry time).
Environment details