Binato/server/util/getUserByToken.js

4 lines
121 B
JavaScript
Raw Normal View History

module.exports = function(token) {
if (global.userKeys.includes(token)) return global.users[token];
else return null;
}