mirror of
https://github.com/Unleash/unleash.git
synced 2024-12-22 19:07:54 +01:00
13 lines
306 B
JavaScript
13 lines
306 B
JavaScript
'use strict';
|
|
|
|
const cookieSession = require('cookie-session');
|
|
|
|
module.exports = function(config) {
|
|
return cookieSession({
|
|
name: 'unleash-session',
|
|
keys: [config.secret],
|
|
maxAge: config.sessionAge,
|
|
path: config.baseUriPath === '' ? '/' : config.baseUriPath,
|
|
});
|
|
};
|