Skip to content
This repository
Browse code

Added secret to generated app

  • Loading branch information...
commit 28361c9279ab182de5d03d3cb6209af017020163 1 parent 82e15cf
TJ Holowaychuk authored

Showing 1 changed file with 1 addition and 1 deletion. Show diff stats Hide diff stats

  1. +1 1  bin/express
2  bin/express
@@ -321,7 +321,7 @@ function createApplicationAt(path) {
321 321
322 322 // Session support
323 323 app = app.replace(':SESS', sessions
324   - ? '\n app.use(express.cookieDecoder());\n app.use(express.session());'
  324 + ? '\n app.use(express.cookieDecoder());\n app.use(express.session({ secret: \'your secret here\' }));'
325 325 : '');
326 326
327 327 // Template support

0 comments on commit 28361c9

Please sign in to comment.
Something went wrong with that request. Please try again.