diff --git a/auth.js b/auth.js index fa0c70b..f60aab0 100644 --- a/auth.js +++ b/auth.js @@ -1,15 +1,7 @@ const config = require('./config'); -function checkUser(userId) { +function auth(userId) { return config.app.authorizedUsers.includes(userId); } -function auth(userId, okAuth, koAuth) { - if (checkUser(userId)) { - okAuth(); - } else { - koAuth(); - } -} - module.exports = auth;