google-oauth
Highly inspired by github-oauth
Simple functions for doing oauth login with Google. Compatible with any node http server that uses handler callbacks that look like function(req, res) {}
usage
var googleOAuth = googleClient: processenv'GOOGLE_CLIENT' googleSecret: processenv'GOOGLE_SECRET' baseURL: 'http://localhost' loginURI: '/login' callbackURI: '/callback' scope: 'user' // optional, default scope is set to user googleOAuth googleOAuth // now go to http://localhost/login
bonus feature
googleOauth // where myAppRouter is a router that will work with: // myAppRouter.get('/google/login', function(req, res) {}) // http://google.com/flatiron/director works like this // or even more bonus: googleOauth
license
BSD LICENSED