jaredhanson/oauth2orize — pull request #69 by CamShaft (2013-12-04 04:41:02+00:00)
Title: Pass req to callback

This checks the arity of the callback functions and pass the `req` object if it has an extra parameter. This should be backwards compatible with any existing plugins.

This PR depends on jaredhanson/chai-oauth2orize-grant#1 to have the tests pass. It's similar to my existing PR on jaredhanson/passport#160.

Let me know if there's any questions!