Здесь я прокомментировал проблемы:
const config = require('./config');
let tkn = new config.token(); // Token constructor expects an argument.
console.log('tkn', tkn.getToken); // This is correct and will work provided the constructor argument.
console.log('TKN', config.token.getToken); // You must instantiate the token and use the instance.
let url = new config.url();
console.log('URL', config.url.getUrl); // Same as with the token. It must be instantiated and getUrl accessed through that instance.
console.log('url', tkn.getUrl); // Here you're trying to call getUrl of the Token class but it doesn't exist.
Фиксированная версия
const config = require('./config');
let tkn = new config.token("token");
console.log('tkn', tkn.getToken);
let url = new config.url();
console.log('URL', url.getUrl);