I don't think so, probably something to do with cookies changing. I'm guessing you need to call redirect or status.send to avoid the error.
Node.js based forum software built for the modern web - NodeBB/authentication.js at master · NodeBB/NodeBB
faviconGitHub (github.com)