oidc/getAuthorizedScopes.js
function getAuthorizedScopes (req, res, next) {
  // Get the scopes authorized for the verified and decoded token
  var scopeNames = req.claims.scope && req.claims.scope.split(' ')

  Scope.get(scopeNames, function (err, scopes) {
    if (err) { return next(err) }
    req.scopes = scopes
    next()
  })
}
function getAuthorizedScopes (req, res, next) {
  // Get the scopes authorized for the verified and decoded token
  var scopeNames = req.claims.scope && req.claims.scope.split(' ')

  Scope.get(scopeNames, function (err, scopes) {
    if (err) { return next(err) }
    req.scopes = scopes
    next()
  })
}
function getAuthorizedScopes ( req , res , next ) { // Get the scopes authorized for the verified and decoded token var scopeNames = req . claims . scope && req . claims . scope . split ( ' ' ) Scope . get ( scopeNames , function ( err , scopes ) { if ( err ) { return next ( err ) } req . scopes = scopes next ( ) } ) }
Get Authorized Scopes
Rename this to disambiguate from determineUserScope
Get Authorized Scopes Rename this to disambiguate from determineUserScope