const check = require("./test.js")
check("dh39dk")
function checkToken(token) {
if(!arr[token]) return false
return true
}
module.exports = checkToken
const check = require("./test.js")
check.setToken("dh39dk")
check()
class TokenValidator {
constructor(token) {
this.token = token
}
check() {
if (!arr[this.token]) return false
return true
}
}
const validator = new TokenValidator("dhejeuus")
console.log(validator.check())
class TokenValidator {
setToken(token) {
this.token = token
}
check() {
if (!arr[this.token]) return false
return true
}
}