examples/oauth-client/oauth/provider.js
function done(req, next, err, obj) {
    if (err) {
        req.error = {error: err.error || err.message};
    } else {
        req.provider = obj;
    }
    next();
}
function done(req, next, err, obj) {
    if (err) {
        req.error = {error: err.error || err.message};
    } else {
        req.provider = obj;
    }
    next();
}
function done ( req , next , err , obj ) { if ( err ) { req . error = { error : err . error || err . message } ; } else { req . provider = obj ; } next ( ) ; }
Sets error and data object
Sets error and data object