Skip to content

Instantly share code, notes, and snippets.

@BrunoBernardino
Created October 17, 2017 09:24
Show Gist options
  • Star 0 You must be signed in to star a gist
  • Fork 0 You must be signed in to fork a gist
  • Save BrunoBernardino/dbd7593fd6fe1251f924daedc6451962 to your computer and use it in GitHub Desktop.
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