{"library":"connect-ensure-login","type":"library","category":null,"description":"Connect-Ensure-Login is a middleware designed for Connect-compatible frameworks like Express.js, primarily used to ensure a user is authenticated before accessing protected routes. If an unauthenticated request is received, the middleware redirects the user to a specified login page and stores the original requested URL in the session (via `req.session.returnTo`). After successful authentication, the application can then redirect the user back to their intended destination. The package's current stable version, 0.1.1, was released in 2013, making it over a decade old and effectively abandoned. It has no active release cadence or maintenance. Its key differentiator was its straightforward integration with Passport.js for handling common authentication flows, but its age means it lacks modern features, security updates, and compatibility with contemporary Node.js and web development practices, making it unsuitable for new projects.","language":"javascript","status":"abandoned","version":"0.1.1","tags":["javascript","connect","express","auth","authn","authentication","login","session","passport"],"last_verified":"Wed May 27","install":[{"cmd":"npm install connect-ensure-login","imports":["const { ensureLoggedIn } = require('connect-ensure-login');","const { ensureLoggedOut } = require('connect-ensure-login');","const connectEnsureLogin = require('connect-ensure-login');"]},{"cmd":"yarn add connect-ensure-login","imports":[]},{"cmd":"pnpm add connect-ensure-login","imports":[]}],"homepage":null,"github":"https://github.com/jaredhanson/connect-ensure-login","docs":null,"changelog":null,"pypi":null,"npm":"https://www.npmjs.com/package/connect-ensure-login","openapi_spec":null,"status_page":null,"smithery":null,"compatibility":{"summary":{"python_range":"18–22","success_rate":0,"avg_install_s":null,"avg_import_s":null,"wheel_type":null},"url":"https://checklist.day/v1/registry/connect-ensure-login/compatibility"}}