lib/framework/koa.js
function authorize(passport, name, options, callback) {
  options = options || {}
  options.assignProperty = 'account'

  return authenticate(passport, name, options, callback)
}
function authorize(passport, name, options, callback) {
  options = options || {}
  options.assignProperty = 'account'

  return authenticate(passport, name, options, callback)
}
function authorize ( passport , name , options , callback ) { options = options || { } options . assignProperty = 'account' return authenticate ( passport , name , options , callback ) }
Passport's authorize middleware for Koa.

@param {String|Array} name
@param {Object} options
@param {GeneratorFunction} callback
@return {GeneratorFunction}
@api private
Passport s authorize middleware for Koa .