Binato/server/util/getUserByToken.js

4 lines
127 B
JavaScript
Raw Normal View History

module.exports = function(token) {
2021-05-15 00:24:39 +01:00
if (global.userKeys.includes(token)) return global.users[token];
else return null;
}