oidc/determineUserScope.js
function determineUserScope (req, res, next) {
  var params = req.connectParams
  var scope = params.scope
  var subject = req.user

  Scope.determine(scope, subject, function (err, scope, scopes) {
    if (err) { return next(err) }
    req.scope = scope
    req.scopes = scopes
    next()
  })
}
function determineUserScope (req, res, next) {
  var params = req.connectParams
  var scope = params.scope
  var subject = req.user

  Scope.determine(scope, subject, function (err, scope, scopes) {
    if (err) { return next(err) }
    req.scope = scope
    req.scopes = scopes
    next()
  })
}
function determineUserScope ( req , res , next ) { var params = req . connectParams var scope = params . scope var subject = req . user Scope . determine ( scope , subject , function ( err , scope , scopes ) { if ( err ) { return next ( err ) } req . scope = scope req . scopes = scopes next ( ) } ) }
Determine user scope
Determine user scope