jaredhanson/oauth2orize — pull request #13 by geeqie (2012-10-19 13:14:00+00:00)
Title: Passing to the code grant middleware callback areq instead of ares

Code grant middleware doesn't pass scope to its callback function
because it's stored in request. Instead, issue() function is passed
ares structure, which is no use when issuing authorization code.

Also, this fixes the broken documentation example:
```javascript
server.grant(oauth2orize.grant.code(function(client, redirectURI, user, ares, done) {
AuthorizationCode.create(client.id, redirectURI, user.id, ares.scope, function(err, code) {
if (err) { return done(err); }
done(null, code);
});
}));
```