Created
June 11, 2011 15:36
-
-
Save simonmcmanus/1020679 to your computer and use it in GitHub Desktop.
This file contains hidden or 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
everyauth | |
.myHostname('http://local.host:3000') | |
.appId(conf.fb.appId) | |
.appSecret(conf.fb.appSecret) | |
.findOrCreateUser( function (session, accessToken, accessTokenExtra, fbUserMetadata) { | |
return usersByFbId[fbUserMetadata.id] || | |
(usersByFbId[fbUserMetadata.id] = fbUserMetadata); | |
}) | |
.findUserById(function(userId, callback) { | |
console.log('FIND BY USER CALLED'); | |
callback(null, usersByFbId[userId].username); | |
}) | |
.redirectPath('/'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment