Skip to content

Commit a83d326

Browse files
author
joeltaylor
committed
Make cookie key and ENV
1 parent d1c40e1 commit a83d326

1 file changed

Lines changed: 1 addition & 1 deletion

File tree

server/app.js

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -43,7 +43,7 @@ var client = redis.createClient();
4343
var secureCookie = process.env.NODE_ENV === 'production' ? true : false
4444
app.use(expressSession({
4545
store: new RedisStore({client: client}),
46-
secret: 'replace-me-with-secret-key',
46+
secret: process.env.COOKIE_KEY,
4747
cookie: {secure: secureCookie}
4848
}));
4949
app.use(passport.initialize());

0 commit comments

Comments
 (0)