EvalueTonSavoir/server/controllers/auth.js

23 lines
540 B
JavaScript
Raw Normal View History

const authConfig = require('../config/auth.js');
class authController {
async getActive(req, res, next) {
try {
console.log(authConfig);
const authServices = {
simpleLoginActive: authConfig.simpleLoginActive,
oauthActive: authConfig.oauthActive,
oidcActive: authConfig.oidcActive
};
res.json(authServices);
}
catch (error) {
return next(error);
}
}
}
module.exports = new authController;