Skip to content

Instantly share code, notes, and snippets.

@shlomizadok
Created March 21, 2012 12:55
Show Gist options
  • Save shlomizadok/2146712 to your computer and use it in GitHub Desktop.
Save shlomizadok/2146712 to your computer and use it in GitHub Desktop.
Can't connect to github - everyauth
var express = require('express')
, routes = require('./routes')
, everyauth = require('everyauth');
var app = module.exports = express.createServer();
everyauth.github
.appId('myID')
.appSecret('MySecret')
.scope('user')
.findOrCreateUser( function (session, accessToken, accessTokenExtra, githubUserMetadata) {
// find or create user logic goes here
console.log(githubUserMetadata);
})
.redirectPath('/');
Sign up for free to join this conversation on GitHub. Already have an account? Sign in to comment