Passport.js 0.6.0 req.logout() asynchronous transition
Session Termination Behavior Updating a Node.js application to Passport.js version 0.6.0 introduces a breaking change to the req.logout() method. In previous versions, this method operated synchronously, allowing developers to call it without a callback function before redirecting the user. Starting with version 0.6.0, req.logout() is asynchronous and requir