github-oauth
simple functions for doing oauth login with github. compatible with any node http server that uses handler callbacks that look like function(req, res) {}
usage
var githubOAuth = githubClient: processenv'GITHUB_CLIENT' githubSecret: processenv'GITHUB_SECRET' baseURL: 'http://localhost' loginURI: '/login' callbackURI: '/callback' scope: 'user' // optional, default scope is set to user githubOAuth githubOAuth // now go to http://localhost/login
If you want to support no scope, pass in scope: ''
bonus feature
githubOauth // where myAppRouter is a router that will work with: // myAppRouter.get('/github/login', function(req, res) {}) // http://github.com/flatiron/director works like this // or even more bonus: githubOauth
license
BSD LICENSED