UNPKG

@nzz/q-server

Version:

__Q__ is a system that lets journalists create visual elements for stories. It is developed by [NZZ Storytelling](https://www.nzz.ch/storytelling) and used in the [NZZ](https://www.nzz.ch) newsroom.

15 lines (10 loc) 355 B
const server = require('../../server.js').getServer(); const stateUserConfig = server.settings.app.misc.get('/authStrategy/couchdb_cookie/state'); let stateConfig = { isSecure: true, isHttpOnly: true, clearInvalid: true, strictHeader: true }; stateConfig = Object.assign(stateConfig, stateUserConfig) server.state('AuthSession', stateConfig);