Skip to content

mathisonian/connect-maybe-login

Folders and files

NameName
Last commit message
Last commit date

Latest commit

 

History

3 Commits
 
 
 
 
 
 
 
 
 
 

Repository files navigation

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.

Inspired by connect-ensure-login by Jared Hanson

Getting Started

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

Example Usage

var maybeLoggedIn = require('connect-maybe-login');

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

License

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

About

Set correct session parameters for node pages that can have both logged in & logged out users

Resources

Stars

Watchers

Forks

Releases

No releases published

Packages

No packages published