Last active
August 9, 2016 00:10
-
-
Save bostontrader/071c3978d2933bf97ea2ec509f9d2835 to your computer and use it in GitHub Desktop.
Hello Authentication and Express using auth0, webtask.io, and Express.
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
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