Browse files

Use redsess properly in decorate

  • Loading branch information...
1 parent 5f06527 commit 59773681e462ef3f70601e9208791c05d033e6b9 @isaacs isaacs committed Sep 27, 2012
Showing with 4 additions and 1 deletion.
  1. +4 −1 decorate.js
View
5 decorate.js
@@ -119,7 +119,10 @@ function decorate (req, res, config) {
// TODO: Move some/all of this into a separate module.
req.cookies = res.cookies = new Cookies(req, res, config.keys)
- req.session = res.session = new RedSess(req, res)
+ req.session = res.session = new RedSess(req, res, {
+ keys: config.keys,
+ cookies: req.cookies
+ })
// set up the CouchLogin to automatically save the token in the
// session, and log in on demand.

0 comments on commit 5977368

Please sign in to comment.