I have this function which I want to handle authorization:
module.exports.authorizer = (event, context, callback) => {
callback(null, { message: ‘Successful authenticated’, event });
};
In the protected function I specified the function’s asn to be the authorizer and on deploy it is configured to be the authorizer of that function.
But when I call the function I get a 500 errror