connect-maybe-login

0.0.1 • Public • Published

connect-maybe-login

Set correct passport settings for pages which accept logged in & logged out users. This is useful in the case that a user logs in from a form on that page, and will cause their request to be properly redirected.

Getting Started

Install the module with: npm install connect-maybe-login

Example Usage

     app.get('/some-page', maybeLoggedIn(), function(req, res) { ... });

License

Copyright (c) 2014 Matthew Conlen. Licensed under the MIT license.

Dependencies (0)

    Dev Dependencies (0)

      Package Sidebar

      Install

      npm i connect-maybe-login

      Weekly Downloads

      1

      Version

      0.0.1

      License

      MIT

      Last publish

      Collaborators

      • mathisonian