Open
Description
There is a very useful hidden(ish) functionality in oauth2-server > lib > grant.js on line 200 that should probably be mentioned in the documentation;
Rather than calling back with an authCode object with a userId, sometimes it is necessary when integrating with an existing system to pass along other user properties in authCode.user to, say, generate the correct token in the users generateToken(type, req, callback) definition.