Skip to content

Instantly share code, notes, and snippets.

@omerlh
Created August 10, 2015 06:11
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 omerlh/415ef7efceaa4787dc23 to your computer and use it in GitHub Desktop.
Save omerlh/415ef7efceaa4787dc23 to your computer and use it in GitHub Desktop.
pass bunyan log instance
var options = {
log: log
};
var bearerStategy = new BearerStrategy(options,
function(token, done) {
return done(null, token);
});
passport.use(bearerStategy);
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment