Created
March 21, 2012 12:55
-
-
Save shlomizadok/2146712 to your computer and use it in GitHub Desktop.
Can't connect to github - everyauth
This file contains 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
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