You signed in with another tab or window. Reload to refresh your session.You signed out in another tab or window. Reload to refresh your session.You switched accounts on another tab or window. Reload to refresh your session.Dismiss alert
{{ message }}
This repository has been archived by the owner on Mar 11, 2022. It is now read-only.
Auto-renewed session cookies do not persist beyond original session lifetime.
It turns out request uses tough-cookie and this problem is caused by salesforce/tough-cookie#154 and is very similar to IBM/cloudant-node-sdk#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.
1. Steps to reproduce and the simplest code sample possible to demonstrate the issue
Make a request that starts a session
Wait until an auto-renew happens at 50% of the session lifetime, getting a second session
Make a second request as the first session lifetime finishes
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
Version(s) that are affected by this issue.
4.2.2 to 4.5.0
Node.js version
14.17.3
The text was updated successfully, but these errors were encountered:
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 salesforce/tough-cookie#154 and is very similar to IBM/cloudant-node-sdk#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
The text was updated successfully, but these errors were encountered: