nodegame-game-template
Version:
Template files for a standard nodeGame game
23 lines (20 loc) • 567 B
JavaScript
/**
* # Channel secret file
* Copyright(c) {YEAR} {AUTHOR} <{AUTHOR_EMAIL}>
* MIT Licensed
*
* The file must return a secret key for signing all cookies set by server
*
* The secret key can be stored here directly or loaded asynchronously from
* another source, e.g a remote service or a database.
*
* http://www.nodegame.org
* ---
*/
module.exports = function(settings, done) {
return '{SECRET}';
// Example: return key asynchronously
// loadKeyFromServer(function(err, key) {
// done(err, key);
// });
};