On May 23, 11:35 am, Toddy Mladenov <[email protected]> wrote:
> I am not. Can you give me some hints what this session middleware should be?
Just look at the order of your `app.use()` calls.
According to passport's site, the order should be something like this:
app.configure(function() {
app.use(express.static('public'));
app.use(express.cookieParser()); // first
app.use(express.bodyParser());
app.use(express.session({ secret: 'keyboard cat' })); // second
app.use(passport.initialize()); // third
app.use(passport.session()); // fourth
app.use(app.router); // fifth
});
--
--
Job Board: http://jobs.nodejs.org/
Posting guidelines:
https://github.com/joyent/node/wiki/Mailing-List-Posting-Guidelines
You received this message because you are subscribed to the Google
Groups "nodejs" group.
To post to this group, send email to [email protected]
To unsubscribe from this group, send email to
[email protected]
For more options, visit this group at
http://groups.google.com/group/nodejs?hl=en?hl=en
---
You received this message because you are subscribed to the Google Groups
"nodejs" group.
To unsubscribe from this group and stop receiving emails from it, send an email
to [email protected].
For more options, visit https://groups.google.com/groups/opt_out.