通常我知道怎么做,但是当我尝试返回cookieSession(在第二个中间件中)时,有些东西就崩溃了。请参阅下面的代码和底部链接的关于codesandbox.io的示例。use key from SecretKeeper to sign and verify cookie
return cookieSession我希望我可以使用我之前设置的req.cookieKey,然后返回cookieSession函数,但这似乎不起作用。我在设置
我有一个在CentOS 7服务器上运行的网站,并且我使用pm2进行生产,当我运行pm2 logs时,显示如下:designed for a production environment, as it will leak memory, and will not scale past a single process."
这工作得很好并且通过了身份验证,但5天后,这只在我的PC上进行了身份验证,如果我在另一台PC上尝试,我的登录不会通过身份验证(工作),并将我重定向到登录页面。为什么会