Files
unleash/lib/middleware/no-authentication.js
T
Ivar Conradi Østhus ce0c66d127 fix: add TTL to sessions
2020-10-02 16:32:05 +02:00

13 lines
277 B
JavaScript

'use strict';
const User = require('../user');
function noneAuthentication(basePath = '', app) {
app.use(`${basePath}/api/admin/`, (req, res, next) => {
req.user = new User({ username: 'unknown' });
next();
});
}
module.exports = noneAuthentication;