With a recent update to the cookie dependency, the expires value must be valid when setting cookies. pouchdb-server does not limit the timeout config option, which if too big causes Express to set an invalid date. This also causes an uncaught and hard to troubleshoot error.
Unhelpful Error that bubbles: Cannot read properties of undefined (reading 'getSecurity')
Suggestions:
I created a PR to better bubble errors and be more tolerant of high timeouts.
I also created a PR in Express to better tolerate high maxAges
With a recent update to the
cookie
dependency, theexpires
value must be valid when setting cookies.pouchdb-server
does not limit thetimeout
config option, which if too big causes Express to set an invalid date. This also causes an uncaught and hard to troubleshoot error.Unhelpful Error that bubbles:
Cannot read properties of undefined (reading 'getSecurity')
Suggestions: