valid-apikey.js 198 Bytes
const config = require('komodo-sdk/config');

module.exports = (apikey) => apikey
    && apikey === (
        config.listener && config.listener.apiserver && config.listener.apiserver.apikey
    );