Skip to content

Instantly share code, notes, and snippets.

@BrunoBernardino
Created October 17, 2017 09:24
Show Gist options
  • Select an option

  • Save BrunoBernardino/dbd7593fd6fe1251f924daedc6451962 to your computer and use it in GitHub Desktop.

Select an option

Save BrunoBernardino/dbd7593fd6fe1251f924daedc6451962 to your computer and use it in GitHub Desktop.
Webtask for api-query auth
module.exports = function(context, cb) {
if (!context.query.apiKey) {
return cb(401, 'Unauthorized');
}
cb(null, {
authenticated: true,
user: 'Zapier',
});
};
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment