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 Sep 14, 2022. It is now read-only.
/.../node_modules/csurf/index.js:65
res.cookie(cookieKey, secret, cookie);
^
TypeError: undefined is not a function
at /.../node_modules/csurf/index.js:65:13
at Object.ondone (/.../node_modules/csurf/node_modules/csrf-tokens/node_modules/uid-safe/index.js:13:7)
All packages are the latest ones available in NPMJS.
Tanks in advance!
The text was updated successfully, but these errors were encountered:
Thanks. connect 3 no longer adds any patches to res, which is why there is no res.cookie any longer. I'll fix this module to not rely on that patch existing is all.
Just as an update here, the integration with res.cookies in express is not easy to get rid of, especially with the implicit cookie signing. For now, session-based tokens should work fine, but untangling the res.cookie dependence is still to be done.
Dear All,
I just switched to connect 3 and i have an issue, hoped you can help me out.
And to all request I send I received this:
All packages are the latest ones available in NPMJS.
Tanks in advance!
The text was updated successfully, but these errors were encountered: