jaredhanson/passport — pull request #165 by mpalmerlee (2013-09-05 23:50:24+00:00)
Title: REF: https://github.com/jaredhanson/passport/issues/111 adding passing o...

Here is the issue this relates to:
https://github.com/jaredhanson/passport/issues/111

I realized there was another pull request for this same thing after I created my fork.
https://github.com/jaredhanson/passport/pull/160

the solution in that pull request by @CamShaft is much more elegant because he does type checking to ensure backwards compatibility so that the callback can remain the last parameter.

Mine is simpler and a bit more dirty, adding req as the last parameter.

Maybe this pull request will evidence the need for the feature as my need is the same as @CamShaft's (need the domain the request was for in order to properly deserialize the user).

thanks,
-Matt