EvalueTonSavoir/server/controllers/auth.js
MathieuSevignyLavallee 6dde0cca38 Routes for Auth Backend
routes simple pour envoyer au frontend quel type de auth est disponible
2024-09-22 14:52:41 -04:00

23 lines
No EOL
540 B
JavaScript

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;