diff --git a/index.js b/index.js index 63dca92..fec7a25 100644 --- a/index.js +++ b/index.js @@ -65,6 +65,8 @@ function formatOpts(opts) { // back-compat maxage if (!('maxAge' in opts)) opts.maxAge = opts.maxage; + opts.maxAge = opts.maxAge || 86400000; + // defaults if (opts.overwrite == null) opts.overwrite = true; if (opts.httpOnly == null) opts.httpOnly = true;