Skip to content

Commit

Permalink
Remove the key option
Browse files Browse the repository at this point in the history
  • Loading branch information
dougwilson committed Aug 9, 2015
1 parent c8867bc commit 7604431
Show file tree
Hide file tree
Showing 2 changed files with 7 additions and 2 deletions.
5 changes: 5 additions & 0 deletions HISTORY.md
@@ -1,3 +1,8 @@
2.x
===

* Remove the `key` option; use `name` instead

1.2.0 / 2015-07-01
==================

Expand Down
4 changes: 2 additions & 2 deletions index.js
Expand Up @@ -40,8 +40,8 @@ module.exports = cookieSession
function cookieSession(options) {
var opts = options || {}

// name - previously "opts.key"
var name = opts.name || opts.key || 'express:sess';
// cookie name
var name = opts.name || 'express:sess';

// secrets
var keys = opts.keys;
Expand Down

0 comments on commit 7604431

Please sign in to comment.