Created
June 10, 2011 09:34
-
-
Save simonmcmanus/1018545 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://'+config.host+':'+config.port) | |
.appId("180068492046726") | |
.appSecret("d0100e9902dfbed25eb3e92a2671ad0b") | |
.findByUser(function(userId, callback) { | |
callback(null, usersByFbId[userId].username); | |
}) | |
.findOrCreateUser( function (session, accessToken, accessTokenExtra, fbUserMetadata) { | |
return usersByFbId[fbUserMetadata.id] || | |
(usersByFbId[fbUserMetadata.id] = fbUserMetadata); | |
}) | |
.redirectPath('/'); |
Sign up for free
to join this conversation on GitHub.
Already have an account?
Sign in to comment