Skip to content

Instantly share code, notes, and snippets.

@bostontrader
Last active August 9, 2016 00:10
Show Gist options
  • Save bostontrader/071c3978d2933bf97ea2ec509f9d2835 to your computer and use it in GitHub Desktop.
Save bostontrader/071c3978d2933bf97ea2ec509f9d2835 to your computer and use it in GitHub Desktop.
Hello Authentication and Express using auth0, webtask.io, and Express.
var app = new(require('express'))();
var wt = require('webtask-tools');
app.get('/', function(req, res) {
res.end('Hello ' + req.user.name);
});
app.get('/about', function(req, res) {
res.end('About this app');
});
module.exports = wt.fromExpress(app).auth0();
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment