get function()

in src/index.js [91:98]


    get function() {
        const params = this.params;
        const invoke = params.invoke ? params.invoke : (e,c,ca,p) => p;
        delete params.invoke;
        
        return `const {AuthLambdaEdge} = require('./lib')\nconst AWS = require('aws-sdk');\nlet params = ${util.inspect(params)}\n\nexports.${this.handler} = function(event, context, callback) {\n    const getParams = ${invoke.toString()}\n    params = getParams(event,context,callback,params,AWS,AuthLambdaEdge);\n    if (params && typeof params === 'object' && typeof params.then === 'function') {\n        params.then(a => {\n            return AuthLambdaEdge.init(event,callback,a);\n        });\n    } else {\n        return AuthLambdaEdge.init(event,callback,params);\n    }\n}
        `
    }