We read every piece of feedback, and take your input very seriously.
To see all available qualifiers, see our documentation.
Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.
By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.
Already on GitHub? Sign in to your account
The signature for findOrCreateUser in the facebook connect example is wrong:
.findOrCreateUser( function (session, accessToken, fbUserMetadata) { // find or create user logic goes here })
The step in the oauth2 module states:
.step('findOrCreateUser') //.optional() .accepts('session accessToken extra oauthUser') .promises('user')
So findOrCreateUser takes four parameters, the third being an "extra" parameter. The OAuth user is the fourth argument. So the example should read:
.findOrCreateUser( function (session, accessToken, extra, fbUserMetadata) { // find or create user logic goes here })
Otherwise, fbUserMetadata will be 'null' for facebook connect.
The text was updated successfully, but these errors were encountered:
7b06df2
No branches or pull requests
The signature for findOrCreateUser in the facebook connect example is wrong:
The step in the oauth2 module states:
So findOrCreateUser takes four parameters, the third being an "extra" parameter. The OAuth user is the fourth argument. So the example should read:
Otherwise, fbUserMetadata will be 'null' for facebook connect.
The text was updated successfully, but these errors were encountered: