diff options
Diffstat (limited to 'src/routers/vault/index.js')
-rw-r--r-- | src/routers/vault/index.js | 3 |
1 files changed, 2 insertions, 1 deletions
diff --git a/src/routers/vault/index.js b/src/routers/vault/index.js index 4213dcb..831ec93 100644 --- a/src/routers/vault/index.js +++ b/src/routers/vault/index.js @@ -1,6 +1,7 @@ const express = require("express"); // from npm registry const Sequelize = require("sequelize"); // from npm registry const Ephemeral = require("./utils/ephemeral.js"); +const SessionStore = require("./types/SessionStore.js"); const models = { vault: [ @@ -46,7 +47,7 @@ module.exports = exports = class Vault { // to middlewares, so we might have to curry them this.api = api; - this.api.locals.session = Ephemeral.session_handler; + this.api.locals.session = new SessionStore(); this.api.locals.identity_pending = Ephemeral.identity_handler; this.router = express.Router(["caseSensitive", "strict"]); this.sequelize = {}; |