Created
May 13, 2012 09:56
-
-
Save muhleder/2687278 to your computer and use it in GitHub Desktop.
Basic auth for Meteor
This file contains hidden or 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
Meteor.startup(function() { | |
var require = __meteor_bootstrap__.require | |
var connect = require('connect') | |
__meteor_bootstrap__.app.use(connect.basicAuth('username', 'password')) | |
var basicAuth = __meteor_bootstrap__.app.stack.pop() | |
__meteor_bootstrap__.app.stack.unshift(basicAuth) | |
}) |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment